[jdom-interest] mvoing mixed content

Wagner Stefan AII/Wien Stefan.Wagner at aiinformatics.com
Wed Jul 25 09:35:41 PDT 2001


Hello!
 
1. I would like to have an easy method for moving mixed content like:
element.moveContent ( Element source ).
 
2. Looking through the source code I noticed source like that:
 
 
if (obj instanceof String)             (NB: what about Text?? )
{ element.content.add (obj); } 
else if (obj instanceof Element) 
{} 
else if (obj instanceof Comment)
{} 
else if (obj instanceof CDATA)
{} 
else if (obj instanceof ProcessingInstruction) 
{} 
else if (obj instanceof EntityRef) 
{}
 
I wonder why there is no common super class for all possible children of an
Element?
 
 
 
Stefan

 
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010725/2d116faf/attachment.htm


More information about the jdom-interest mailing list