View Single Post
  #3 (permalink)  
Old October 20th, 2011, 11:10 PM is offline
Authorized User
Points: 112, Level: 2
Points: 112, Level: 2 Points: 112, Level: 2 Points: 112, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by codehelp View Post
See if this helps. Not exactly what you asked for but should be enough to get started.

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:
string xmlString = @"<items><item1 id='1'>Text</item1><item2 id='2'>Text</item2></items>";
XmlDocument doc = new XmlDocument();
XmlNode node = doc.SelectSingleNode(@"items/item1");
First of all thanks for your effort.. but i have tried using node.outerxml method but it still returns only a concatinated string containing values of all child nodes together same as an innerxml method..

secondly i want to print the entire xml including the tags and everything that is returned by the webservice on my aspx page ...(XML output format how should i do that)... please its urgent.. please let me know as soon as possible..