I have a Xdocument that is populated as follows:
XDocument xDoc = XDocument.Parse(new StreamReader(response.GetResponseStream()).ReadToEnd());
This gives me an XDocument that looks as follows:
<GetReportAsXMLString>
<report>
<reportItem Count ="562..................
</GetReportAsXMLStringResult>
Anything between the tag is all just a giant string(Black). How would I get this portion of the document to format as XML? The tag is also part of the string. I just don’t know how to make this show it as not XML.
Thanks
It’s hard to say from your description, but it looks like you’ll need to first parse the response stream (valid xml), which contains another xml document (as a string). You’ll need to extract the string from the ‘outer’ xml document and parse it into a new one:
psuedocode: