[jdom-interest] addElement and DTD...

Padhu Vinirs p.padhu at verizon.net
Sun Nov 10 08:03:28 PST 2002


If  I call addElement(),  is there a way to maintain the location of the 
element as defined by the DTD ? For example,

<!ELEMENT  account ( name, address )>

Then if there is a "accountElement", which already has a "name" child 
element, then will a call like

accountElement.addElement(addressElement);

create the addressElement after the nameElement, like,

<account>
    <name>.....</name>
    <address>....</address>
</account>

instead of

<account>
    <address>...</address>
    <name>...</name>
</account>


Thanks

-- padhu






More information about the jdom-interest mailing list