[jdom-interest] Replace child?

Stephan Trebels stephan at ncube.de
Thu Aug 8 10:08:41 PDT 2002


Tried an iterator and using iterator.set(newTree); ?
Or using a List.set(0, newTree)

Stephan

On Thu, Aug 08, 2002 at 08:57:12AM -0400, Grinvald, Edward wrote:
> Hello all, 
> i have a small problem:
>  
> Suppose i have the following document:
>  
> <a>
>     <b />
>     <c />
> </a>
> <b> and <c> are huge subtrees. I need to rebuild <b> from user data -
> modifications to the current tree would be far to combersome, so i build
> a new one. The only way i can think of replacing the <b> tree is to
> delete it and then append the new <b> to <a>. However, then the tree
> becomes
> <a>
>     <c />
>     <b />
> </a>
>  
> And my dtd simply hates it :)
>  
> Please Help.
>  
> Thank You,
>  
> Edward Grinvald
> Computer Associates International
> Programmer, Storage Development
> Edward.Grinvald at ca.com
> 1-631-342-6000 x76350
>  

-- 
[------------ Stephan Trebels <stephan at ncube.de>, Consultant -----------]
company: nCUBE Deutschland GmbH, Hanauer Str. 56, 80992 Munich, Germany
phone: cell:+49 172 8433111  office:+49 89 149893 0  fax:+49 89 149893 50



More information about the jdom-interest mailing list