D
David
Hi,
My asp.net application is writing a few xml files based on certain criteria.
the application works like this.
1. read an xml template using LoadXML.
2. manipulate the xml and add certain values
3. write the xml out to a file.
now i am achieveing this no problem, however when i write the xml to file it
basically come out as a single long string.
upon opening the file in IE it is formatted beautifully.
I would like to write the xml to file in the formated fashion, is this
possible.
I don't want to have to hardcode xml attribute names in case the schema of
the XML template changes.
I merely want to read XML from a formatted template, manipulate it and then
write it to a file and keep the formatting / indentation.
any help is appreciated.
cheers
martin.
My asp.net application is writing a few xml files based on certain criteria.
the application works like this.
1. read an xml template using LoadXML.
2. manipulate the xml and add certain values
3. write the xml out to a file.
now i am achieveing this no problem, however when i write the xml to file it
basically come out as a single long string.
upon opening the file in IE it is formatted beautifully.
I would like to write the xml to file in the formated fashion, is this
possible.
I don't want to have to hardcode xml attribute names in case the schema of
the XML template changes.
I merely want to read XML from a formatted template, manipulate it and then
write it to a file and keep the formatting / indentation.
any help is appreciated.
cheers
martin.