Donal McWeeney wrote:
I am doing some work with the XmlDocument class for loading and saving files
and I notice that the save call is writing out the empty element in the
following format <element /> - is this formatting possible to control? ie.
get it to write out <element></element>.
That's usually bad idea to rely on difference between these two forms,
because they are truly equivalent ones. Do you have some specific needs
or why do want to control such low level syntax sugar?
PS. You can try writing XML via XmlTextWriter with Formatting property
set to Formatting.Indented.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel