[jdom-interest] Adding a PI to the top of the document

Paulo Vieira pjvieira at yahoo.com
Tue Aug 21 15:58:19 PDT 2001


Hello All!

Is there a way I can add a PI to the very top of the
document? 
I need something like this:

<?xml version="1.0"?>
<?PI?>
<Root>
  <Element/>
</Root>

All I was able to get so far is:

<?xml version="1.0"?>
<Root>
<?PI?>
  <Element/>
</Root>

I tried document.getContent().add(0,PI) and that
didn't work.
Any idea would be appreciated!

Paulo



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More information about the jdom-interest mailing list