« HTTP transport error: Message send failed: For input string “” | Main | A tussle with BAM and ASPNET »

Setting encoding of an XML document

When you need to write an XML document into a queue/file, and if you wish to explicitly set the encoding on the xml document declaration, add the following onto the element of the XSD for the document that you are writing out.

< xsd:schema ....... xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" nxsd:encoding="UTF-8" ... >
...
< /xsd:schema >


The output document will then have the xml document declaration as

< ?xml version="1.0" encoding="UTF-8"? >
...

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on November 26, 2008 3:24 PM.

The previous post in this blog was HTTP transport error: Message send failed: For input string “”.

The next post in this blog is A tussle with BAM and ASPNET.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle