Connecting Tech Pros Worldwide Help | Site Map

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

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 19th, 2005, 07:12 PM
Francesc Guim Bernat
Guest
 
Posts: n/a
Default Question about XmlDocument->Save method (C++ .NET)

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, 07:12 PM
Mike Wahler
Guest
 
Posts: n/a
Default Re: [OT, redir, welcome msg] 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




 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.