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)
            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!
Who is Participating?
CodeCruiserConnect With a Mentor Commented:
slightlyoffAuthor Commented:
Perfect.  Thank you for your help!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.