Is it possible to select a node using an XPathNodeIterator and get the Outer Or InnerXML without indentation?
Since the results are used in XHTML output the indentation (using spaces) will result in layout differences.
Sample code snippet:
xmlDoc = New XPathDocument(fileIn, xmlSpace.Preserve)
xmlNav = xmlDoc.CreateNavigator()
Dim xmlNode As XPathNodeIterator
xmlNode = xmlNav.Select("/books/chapter[page[@process='True']]")
While xmlNode.MoveNext()
content = xmlNode.Current.selectSingleNode("para").OuterXML)
etc.
In this case i would get the following result (note that the original document (fileIn) has no identation and XML is all just one a single line:
<para process="True">
<a href="#1109062">
<em>Some content</em>
</a>
</para>
I would like to get the following.
<para process="True"><a href="#1109062"><em>Some content</em></a></para>