View Single Post
  #2 (permalink)  
Old October 20th, 2011, 07:10 AM
codehelp codehelp is offline
Authorized User
Points: 135, Level: 2
Points: 135, Level: 2 Points: 135, Level: 2 Points: 135, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2007
Location: , , .
Posts: 29
Thanks: 2
Thanked 0 Times in 0 Posts
Default

See if this helps. Not exactly what you asked for but should be enough to get started.
http://www.codeproject.com/Answers/2...t.aspx#answer2

If that is taking too long then here is some code (very trivial though) that might help you.
Since your WS returns a node you can use the OuterXml method of XmlNode object to show the xml in your page.
Here is a sample:
<code>
string xmlString = @"<items><item1 id='1'>Text</item1><item2 id='2'>Text</item2></items>";
XmlDocument doc = new XmlDocument();
doc.LoadXml(xmlString);
XmlNode node = doc.SelectSingleNode(@"items/item1");
System.Console.WriteLine(node.OuterXml);
</code>

Last edited by codehelp; October 20th, 2011 at 07:43 AM.. Reason: Sample code