[jdom-interest] issue on processing instructions !?

Jason Hunter jhunter at collab.net
Thu Dec 28 10:31:07 PST 2000

> How can i put with JDOM my stylesheet tag just under the first line
> <?xml version="1.0"?> ?
> is it possible to do so with JDom ?

You added the root element before you added the PI, so the PI naturally
comes later.

You can do what you want with doc.setMixedContent(listofstuff) and pass
a List containing the items you want in order.

You can see my previous (many) emails in the archive about why this is
so and alternatives we have.  I'm adding something to the FAQ too next
chance I get.


More information about the jdom-interest mailing list