Hi everyone, I have a little problem with the class XmlDocument in .net. I'm using framework 2.0 and I am loading an xmlDocument from a path. The xml has a node without value, defined exactly like this:
<somexmlnode/>
When I load the xml using the xmlDocument class, it seems that it is internally modified to read this as:
<somexmlnode_/>
where "_" is a white space. I can see this when I inspect the InnerXml property of my xmlDocument class. Does somebody know how to prevent this from happening ?
It is very important to me to read all xml's EXACTLY as they are without suffering any kind of change. Any help or ideas would be greatly appreciated
<somexmlnode/>
When I load the xml using the xmlDocument class, it seems that it is internally modified to read this as:
<somexmlnode_/>
where "_" is a white space. I can see this when I inspect the InnerXml property of my xmlDocument class. Does somebody know how to prevent this from happening ?
It is very important to me to read all xml's EXACTLY as they are without suffering any kind of change. Any help or ideas would be greatly appreciated