[jdom-interest] PI problem

Bradley S. Huffman hip at a.cs.okstate.edu
Mon Jun 20 13:33:25 PDT 2005


First read the javadoc for XMLOutputter, particularly the second paragraph.
Then

Format fmt = Format.getPrettyPrint();
fmt.setEncoding("EUC-JP");
XMLOutputter outputter = new XMLOutputter(fmt);

Brad

Rodrigo Alvarez writes:

> Thanks Kay,
> 
> But I still have the same problem. How do I include the XML Declaration=20
> into my JDOM document.
> 
> Regards,
> /Rodrigo
> 
> At 15:27 20/06/2005, you wrote:
> 
> >I have a problem including a process instruction. I want to include the=20
> >following PI
> >
> >
> >
> ><?xml encoding=3D'EUC-JP'?>
> >
> >
> >
> >This isn't a processing instruction. It is an XML declaration. They use=20
> >the same syntax, but a processing instruction can never be named "xml".
> >Michael Kay
> 
> Rodrigo Alvarez Reygadas
> Director de Innovaci=F3n Tecnol=F3gica
> DyBOX Consulting and Development
> ---------------------------------
> Oracle Certified Partner
> ---------------------------------
> 
> Avda. Providencia 2653 Of.1701 Piso 17
> Providencia, Santiago, Chile.
> (562) 333 1121


More information about the jdom-interest mailing list