Re: Re: Renaming a node in a tree

Ian Lea <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
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<[email protected]> 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<[email protected]> 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/[email protected]
>

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.