Connecting Tech Pros Worldwide Help | Site Map

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

  #1  
Old July 19th, 2005, 08:12 PM
Francesc Guim Bernat
Guest
 
Posts: n/a
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

  #2  
Old July 19th, 2005, 08:12 PM
Mike Wahler
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoding mortb answers 3 February 2nd, 2007 01:35 PM
Writing data to disk?! Chris Springer answers 12 December 21st, 2005 05:45 PM
calling a dot net web services from unix Stu answers 7 November 23rd, 2005 05:27 AM
IHttpHandler, IHttpModules, and cleaning up after File Uploading... Sky Sigal answers 13 November 18th, 2005 04:36 PM