Well what do you want from it in terms of a string representation?
There are various methods which convert it into different string
representations, but you'll need to know exactly what you want before
you can really pick one.
hmm weird
i started this thread from google groups and when i wanted to answer i
had to sign up for an account?? How did i t happen in the first place ??
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
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?
You can not convert it so it fits in a string, so to speak, but you can
get the value from the XmlNode by using the Value property on the XmlNode
instance. Also, you can use the InnerXml and OuterXml properties to get the
of the node.
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?
Just any string? You could use any of the following properties:
OuterXml, InnerXml, Value, Name
(and that's just for starters). Those will each give different strings
though - if you're not sure which one of them you want, I suggest you
read the documentation for each of them and see which one sounds most
useful to you.
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 ??
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.