[jdom-interest] jdom-interest] issue on processing instructions OK !?
Judith Andres
J.Andres at wika.de
Fri Dec 29 03:39:14 PST 2000
Hi Dominik,
if you just do the following
Document doc = new Document(null);
the compiler will accept it.
But you have to consider that a document without
a root element is not wellformed.
Judith
if you just add
<<< Dominik Hasek <DHasek1 at excite.com> 29.12. 12.04 >>>
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/
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list