J
Jeppe BS
hi
I got an XmlNode called xNode
Is there a way to convert it so it fits into a string ?
I got an XmlNode called xNode
Is there a way to convert it so it fits into a string ?
Jeppe BS said:I got an XmlNode called xNode
Is there a way to convert it so it fits into a string ?
Jeppe Svendsen said:Anyway
got this webmethod (using Web Matrix) and it should return a string. I
pick out the XmlNode i want and try to return it.
code
XmlNode personNode;
XmlNode root = personDB.DocumentElement;
personNode = root.SelectSingleNode("/person[navn='Jeppe']");
// can i do this ??
string wayout = personNode.OuterXml;
return wayout;
I'm sure you *can* do that - but whether or not it's the >string you
*want* to return, I don't know. What are you passing this >string to
afterwards? What format is it expected to be in?
Jeppe BS said:Well a want a string so i chekck in it my browser if i find the node i
am seraching for.
Guess i could write it into a file, open the file, read like a string,
and return. But wouldnt that be a long way to fix it ??