Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Luca Passani <passani AT eunet.no>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] encoding: how do I hit the XML processing instruction programmatically?
  • Date: Mon, 16 May 2005 05:59:48 -0400

Luca Passani wrote:

How do I programmatically add an encoding attribute to the XMLmprocessing instruction?

Just tell the serializer what encoding you'd like and it will do the work for you. e.g.

Serializer serializer = new Serializer(out. "ISO-8859-1");


--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page