[jdom-interest] a simple question?

felix romero01 at supercable.es
Mon May 21 10:56:20 PDT 2001


I have an XML, for example:

<booksList>
    <bookItem id="1">
        Moby Dick
    </bookItem>
    <bookItem id="2">
        Don Quijote
    </bookItem>
    <bookItem id="3">
        IT
    </bookItem>
</booksList>

And a path, for example, /booksList/bookItem[@id=2]


I know that using XPath I can retrieve this value (Don Quijote), but how can
I modify the xml using this path to put other value by "Don Quijote"?

can I do that using JDOM? I mean, a method
SOME_METHOD(xml,path,newvalue) and generates me the xml adding the newvalue
to the path specified.

Any help would be appreciate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20010521/9e85a0c9/attachment.htm


More information about the jdom-interest mailing list