I realised after using .ImportNode(), the tags of those nodes with no data in the imported XML node got shortened.
For example,
<a>
<b>some text</b>
<c></c>
<d></d>
</a>
will become the following after being imported into a XML document,
<a>
<b>some text</b>
<c />
<d />
</a>
Is this a default behaviour of the ImportNode method?
I need to retain my tags as "<c></c>" after importing. How can I do that?
Could someone please help?
For example,
<a>
<b>some text</b>
<c></c>
<d></d>
</a>
will become the following after being imported into a XML document,
<a>
<b>some text</b>
<c />
<d />
</a>
Is this a default behaviour of the ImportNode method?
I need to retain my tags as "<c></c>" after importing. How can I do that?
Could someone please help?