<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=458515420-20062005><FONT face=Arial
color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=458515420-20062005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=458515420-20062005><FONT face=Arial
color=#0000ff size=2>Michael Kay</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=458515420-20062005><FONT face=Arial
color=#0000ff size=2><A
href="http://www.saxonica.com/">http://www.saxonica.com/</A></FONT></SPAN></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Rodrigo Alvarez
[mailto:ralvarez@dybox.cl] <BR><B>Sent:</B> 20 June 2005 21:10<BR><B>To:</B>
Michael Kay<BR><B>Cc:</B> jdom-interest@jdom.org<BR><B>Subject:</B> RE:
[jdom-interest] PI problem<BR></FONT><BR></DIV>
<DIV></DIV>Thanks Kay,<BR><BR>But I still have the same problem. How do I
include the XML Declaration into my JDOM
document.<BR><BR>Regards,<BR>/Rodrigo<BR><BR>At 15:27 20/06/2005, you
wrote:<BR><BR>
<BLOCKQUOTE class=cite cite="" type="cite">I have a problem including a
process instruction. I want to include the following PI<BR><BR><BR>
<DL><BR>
<DD><PRE><?xml encoding='EUC-JP'?>
<DD><FONT face=arial color=#0000ff size=2> </FONT></DD></PRE><FONT
face="Courier New, Courier"></FONT><BR>
<DD><PRE><FONT face=arial color=#0000ff size=2>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".</FONT></PRE><FONT face="Courier New, Courier"></FONT><BR>
<DD><PRE>Michael Kay
</PRE><FONT
face="Courier New, Courier"></FONT></DD></DL></BLOCKQUOTE><X-SIGSEP>
<P></X-SIGSEP>
<DL></DL><FONT size=4><B>Rodrigo Alvarez Reygadas<BR></FONT><I>Director de
Innovación Tecnológica<BR></I>D<FONT color=#ff0000>y</FONT>BOX</B>
<I>Consulting and Development<BR></I><FONT
color=#808080>---------------------------------<BR>Oracle Certified
Partner<BR>---------------------------------<BR><BR></FONT><FONT
face="Arial Narrow, Helvetica"><I>Avda. Providencia 2653 Of.1701 Piso
17<BR>Providencia, Santiago, Chile.<BR>(562) 333
1121<BR><BR></BLOCKQUOTE></FONT></I></BODY></HTML>