EDN Admin
Well-known member
Hello all,
Using C#.Net, Im trying to pull out a SingleNode of an existing XML document and turn it into its own XML document.
Heres what Ive tried so far... ("TRL" being the SingleNode I want)
<span style="font-size:x-small <span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathDocument<span style="font-size:x-small xPath =
<span style="font-size:x-small; color:#0000ff <span style="font-size:x-small; color:#0000ff new<span style="font-size:x-small
<span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathDocument<span style="font-size:x-small (filename);<span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathNavigator<span style="font-size:x-small xNav = xPath.CreateNavigator();<span style="font-size:x-small <span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small <span style="font-size:x-small
xNav.SelectSingleNode(<span style="font-size:x-small; color:#a31515 <span style="font-size:x-small; color:#a31515 "/PublicationDetailResponse/Body/Publication/PopulatedPublication/Load/TRL"<span style="font-size:x-small ).WriteSubtree(xml);
This returned an XML file very close to what I was looking for, but for some reason, it didnt write the complete file (it stopped after 282593 characters).
Any advice is greatly appreciated!
Thanks,
Matt
<br/>
View the full article
Using C#.Net, Im trying to pull out a SingleNode of an existing XML document and turn it into its own XML document.
Heres what Ive tried so far... ("TRL" being the SingleNode I want)
<span style="font-size:x-small <span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathDocument<span style="font-size:x-small xPath =
<span style="font-size:x-small; color:#0000ff <span style="font-size:x-small; color:#0000ff new<span style="font-size:x-small
<span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathDocument<span style="font-size:x-small (filename);<span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small; color:#2b91af <span style="font-size:x-small; color:#2b91af XPathNavigator<span style="font-size:x-small xNav = xPath.CreateNavigator();<span style="font-size:x-small <span style="font-size:x-small <span style="font-size:x-small
<span style="font-size:x-small <span style="font-size:x-small
xNav.SelectSingleNode(<span style="font-size:x-small; color:#a31515 <span style="font-size:x-small; color:#a31515 "/PublicationDetailResponse/Body/Publication/PopulatedPublication/Load/TRL"<span style="font-size:x-small ).WriteSubtree(xml);
This returned an XML file very close to what I was looking for, but for some reason, it didnt write the complete file (it stopped after 282593 characters).
Any advice is greatly appreciated!
Thanks,
Matt
<br/>
View the full article