[Mono-devel-list] XmlDocument Bug??

Atsushi Eno atsushi at ximian.com
Thu Mar 25 21:34:14 EST 2004


> If I modify an xml node using XmlNode.InnerText and set it to an empty
> string, next time I read the xml document I get a string with a length
> of 3 (it has a newline). Attached is a small example. Am I doing
> something wrong?

XmlDocument.Save() gives indentation to output document. That's why
your output contains whitespaces. Check modified document by your
eyes before reading it ;-)

Atsushi Eno

More information about the Mono-devel-list mailing list