[jdom-interest] Re: Renaming a node in a tree

Ian Lea ian.lea at gmail.com
Tue Jul 28 04:28:33 PDT 2009


Element a = whatever
Element b = a.getChild("b");
b.setName("e");

should work, even in old versions.  What makes you think this doesn't work?


--
Ian.


On Sun, Jul 26, 2009 at 12:59 AM, Oliver Ruebenacker<curoli at gmail.com> wrote:
>     Hello, All,
>
>  I should add, I am using an old version, something like 0.9 beta
> release candidate 2. I'm part of a team who is concerned upgrading
> would break stuff.
>
>  Basically, how would you go from:
>
>  <a><b><c></c><d></d></b></a>
>
>  to
>
>  <a><e><c></c><d></d></e></a>
>
>  Thanks!
>
>     Take care
>     Oliver
>
> On Sat, Jul 25, 2009 at 7:16 PM, Oliver Ruebenacker<curoli at gmail.com> wrote:
>>     Hello, All,
>>
>>  Maybe I am missing the obvious, but how can I change the name, name
>> space and prefix of a node in a tree? The obvious setName and
>> setNamespace don't work. Thanks!
>>
>>     Take care
>>     Oliver
>>
>> --
>> Oliver Ruebenacker, Computational Cell Biologist
>> BioPAX Integration at Virtual Cell (http://vcell.org/biopax)
>> Center for Cell Analysis and Modeling
>> http://www.oliver.curiousworld.org
>>
>
>
>
> --
> Oliver Ruebenacker, Computational Cell Biologist
> BioPAX Integration at Virtual Cell (http://vcell.org/biopax)
> Center for Cell Analysis and Modeling
> http://www.oliver.curiousworld.org
>
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com
>



More information about the jdom-interest mailing list