Solved

Read Throuh XML txt sent as a Response

Posted on 2014-02-13
2
182 Views
Last Modified: 2014-02-13
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
Comment
Question by:slightlyoff
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39856594
0
 
LVL 1

Author Comment

by:slightlyoff
ID: 39856611
Perfect.  Thank you for your help!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Vb.Net Menu 1 22
Javascript Refresh Parent Page from Popup 3 29
Setting runtime form location 4 19
Close word object 13 24
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now