You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by felix <ro...@supercable.es> on 2001/05/21 23:41:38 UTC

a simple question?

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