Solved

Read Throuh XML txt sent as a Response

Posted on 2014-02-13
2
188 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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