Question about XmlDocument->Save method (C++ .NET)

  • Thread starter Francesc Guim Bernat
  • Start date
F

Francesc Guim Bernat

Dear Colleagues,

i'm developing a C++ .NET based application that works with System.Xml
library.
My problem appears when i try to save a document througt
XmlDocument->Save method, because it seems to add some strange
characters at the beginning of the saved XML document.
For instance, if first i print the document throught System::Console
class, the output is:

ini...<?xml version="1.0" encoding="UTF-8"?><ls:Empresa
xmlns:ls="uri:LeanSi (...)

where i've printed "ini..." string in order to test that no strange
simbol is included at the beginning of the XML document, contained in
InnerXml property of XmlDocument.
But when i save the same document througt XmlDocuemnt->Save, the saved
document contains:

<?xml version="1.0" encoding="UTF-8"?><ls:Empresa xmlns...

Do you know why the library adds "" ? This string is added in every
XmlDocument that i try to save.

Thanks,

Francesc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top