Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Francesc Guim Bernat
Guest
 
Posts: n/a
#1: Jul 19 '05
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


Mike Wahler
Guest
 
Posts: n/a
#2: Jul 19 '05

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


"Francesc Guim Bernat" <fguim@fib.upc.es> wrote in message
news:3F8BD8AE.1040800@fib.upc.es...[color=blue]
> Dear Colleagues,
>
> i'm developing a C++ .NET based application that works with System.Xml
> library.[/color]

Answers are available at newsgroup:
microsoft.public.dotnet.languages.vc

Purpose of comp.lang.c++:
http://www.slack.net/~shiva/welcome.txt

HTH,
-Mike




Closed Thread