Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

Read Throuh XML txt sent as a Response

I've found quite a few guides online about reading xml from a file.  But the xml I need to read is sent as an object that I turn into an XMLString.

            response = sessionManager.DoRequests(request)
            MsgBox(response.ToXMLString)
            Dim m_xmlr As XmlTextReader
            m_xmlr = New XmlTextReader(response.ToXMLString)

Open in new window


The MsgBox displays valid XML
However, when I try to parse it using the code above I get the error: "illegal characters in path." - I'm assuming that's because XMLTextReader is expecting a path to a file, not the file contents.

Is there a similar tool to use to read through the results?

Thanks for your help!
0
slightlyoff
Asked:
slightlyoff
1 Solution
 
CodeCruiserCommented:
0
 
slightlyoffAuthor Commented:
Perfect.  Thank you for your help!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now