[jdom-interest] issue on processing instructions OK !?

Dominik Hasek DHasek1 at excite.com
Fri Dec 29 02:14:56 PST 2000


Hi Benjamin,

Thanks for the tip, using getMixedContent works a lot better.
I just insert the PI at first flace of the list Returned.

Unfortunately, if i use setMixedContent(mylistofStuff with a PI and a root
Element) the xmlOutputter provides a null pointer Exception ! 

Why are we obliged to specify a rootElement when we create a document ?

Document doc = new Document(myRootElement);

it would be cool if we can do it later :

Document doc = new Document(); //not Accepted by the compiler
doc.addContent(myPI);
doc.addContent(rootElement);

it seems simplier like this ? 


On Thu, 28 Dec 2000 19:29:01 +0100, Benjamin Broll wrote:

>  Hi,
>  
>  Use getMixedContent of the Document and then insert the PI before the
root
>  element. This should solve the issue.
>  
>  .bbr






_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/





More information about the jdom-interest mailing list