Displaying XML InnerText value RRS feed

  • Question

  • I have written an application which returns an XmlDocument which has several nodes.  What I am looking to do is display the InnerText value of one of these specific nodes but I cannot get this to work at all.

    I have tried Googling this but none of the results so far have worked, so any help would be most appreciated please?

    In my code, I create an XmlDocument and assign it to a returned result from a method which makes a call to an external process:



    XmlDocument xmlDoc = SomeExternalWebService("123");           

    txtXMLString.Text = anInnterText_value;


    Hence I am looking to find out how to parse the InnerText value which will only occur for one of the nodes, so this node is uniquely named.

    Monday, September 12, 2011 6:06 AM


  • Hi,

    Did you try selectsinglenode() method of xmldocument to access the specific node you are looking for and then probably access its innertext value.

    You can also look at following link:


    Hope this hepls

    Pravin Arote, MCTS - Web Technologies. If reply answers your question, Please mark as Answer :)
    • Marked as answer by parote hitachi Monday, September 12, 2011 6:15 AM
    Monday, September 12, 2011 6:07 AM

All replies