Link to home
Start Free TrialLog in
Avatar of slightlyoff
slightlyoff

asked on

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!
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of slightlyoff
slightlyoff

ASKER

Perfect.  Thank you for your help!