Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to configure MSXML2::IXMLDOMDocument to emit UTF8 entities instead of UTF16 characters and indent

From: "Anthony Jones" <AnthonyWJones@------------.--->
To: NULL
Date: 12/30/2008 10:00:00 PM
"Siegfried Heintze" <siegfried@h...> wrote in message 
news:OgQn9GsaJHA.5440@T......
> The XSLT command is
>
> <xsl:output encoding="US-ASCII"/>
>
> How do I do this with the MSXML2::IXMLDOMDocument?
>

Do you recall my describing this to you earlier...

oDOM.insertBefore oDOM.createProcessingInstruction("xml", "version=""1.0""
encoding=""UTF-8"""), oDOM.documentElement

Its in VBScript but sure you can convert it.

With the XML declare in place the .save method will encode the file 
according to the encoding attribute in the xml declare.

IOW use the above code (converted to C++) but with encoding="US-ASCII".

-- 
Anthony Jones - MVP ASP/ASP.NET



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent