Hi,
What is the Xml DOM PreserveWhitespace property supposed to do? I thought
that setting it to false would remove the superfluous white spaces? For
instance, in the following code I would expect the spaces after "for rent"
would be stripped, but it's not the case. I know workarounds for this but
I'm pretty sure in the old MSXML2.DomDocument this used to work very well.
XmlDocument oXml = new XmlDocument();
oXml.PreserveWhitespace = false;
oXml.LoadXml("<?xml version='1.0'?><test><space>this space for rent
</space></test>");
Documentation:
"If PreserveWhitespace is true before Load or LoadXml is called, white space
nodes are preserved; otherwise, if this property is false, significant white
space is preserved, white space is not."
Regards,
Shaun.