[jdom-interest] insertBefore : again

Jason Hunter jhunter at apache.org
Sat Mar 2 00:30:24 PST 2002


> Example when I've got :
>     <root>
>         <element 1>
>             <img/>
>         </element 1>
>     </root>
>  
> I would like to have :
>     <root>
>         <element 1>
>             <a href='somwhere'>click here</a>
>             <img/>
>         </element 1>
>     </root>

Use the List API.  It's noted in the FAQ.

elt1.getContent().add(0, ahrefelt);

-jh-

P.S.  Please don't use HTML mail to post to this list.  Not everyone can
read it, so you'll get fewer replies than if you post plain text.



More information about the jdom-interest mailing list