locked
Get XML Response from service inner text RRS feed

  • Question

  • User2043281626 posted

    Hello,

    Is there a way to obtain just the inner text of the XML response from a service?

    For example, I have the following which is request to a REST service, the return data is XML, but what I really is the inner text, not what the value gets wrapped in for transport.

    XmlDocument oXml = new XmlDocument();

    oXml.Load(strURL); // calll REST service for data

    XmlDocument innerText= new XmlDocument();
    innerText.LoadXml(oXml.InnerText);

    Pretty much I want everything between,

    <string xmlns=\"http://schemas.microsoft.com/2003/10/Serialization>

    ...

    </string>

    Tuesday, August 13, 2013 11:21 AM

Answers

  • User2043281626 posted

    Well, I found an answer to my own issue...Essentially, I needed to return the data back as a stream.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 13, 2013 4:34 PM

All replies

  • User2043281626 posted

    Well, I found an answer to my own issue...Essentially, I needed to return the data back as a stream.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 13, 2013 4:34 PM
  • User260886948 posted

    Hi,

    I am very glad that you have solved your problem by yourself.

    If you have any other problem, welcome to post it in the asp.net forums.

    Best Regards,
    Amy Peng

    Thursday, August 15, 2013 12:10 AM