Hi,
I have two elements in XmlNode objects belonging to one XmlDocument. How
can I get the xml markup between these two?
I mean if the document looks like
<parent>
<child1 />
<child2 />
<child3>
<sub3child />
</child3>
<child4 />
</parent>
So when the first XmlNode will be the child2 element and the second one will
be the child4, I expect to get
<child2 />
<child3>
<sub3child />
</child3>
string. I don't care in/excluding the boundary nodes themselves since I can
correct this using PreviousSibling and NextSibling nodes.
Any simple way to do it? Or anything better/faster than IndexOf in xml
strings does not exist?
Thanks,
Jan