[jdom-interest] PI problem

Michael Kay mike at saxonica.com
Mon Jun 20 13:55:51 PDT 2005


The XML declaration isn't a node in the tree model. It's something you can
possibly cause to be added when the document is serialized - but I don't
know enough about JDOM's serializer to be sure.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: Rodrigo Alvarez [mailto:ralvarez at dybox.cl] 
Sent: 20 June 2005 21:10
To: Michael Kay
Cc: jdom-interest at jdom.org
Subject: RE: [jdom-interest] PI problem


Thanks Kay,

But I still have the same problem. How do I include the XML Declaration 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
following PI







<?xml encoding='EUC-JP'?>




 




This isn't a

processing instruction. It is an XML declaration. They use the same

syntax, but a processing instruction can never be named

"xml".




Michael Kay





Rodrigo Alvarez Reygadas
Director de Innovación Tecnológica
DyBOX Consulting and Development
---------------------------------
Oracle Certified Partner
---------------------------------

Avda. Providencia 2653 Of.1701 Piso 17
Providencia, Santiago, Chile.
(562) 333 1121



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050620/c828e5d5/attachment.htm


More information about the jdom-interest mailing list