Re: Version conflict
Stefan Haustein <[email protected]> Wed, 05 Nov 2003 13:22:06 +0100
| Newsgroups | gmane.comp.java.enhydra.kxml |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > Another question. I have to parse a xml File. When a special node comes, i > have to insert a node value. > > Searching node like this <node param="xy"/> > > After editing it should see like that: <node param="xy">new Value</node> > > Is that possible with kxml Dom? I do it already with serializer an parser, > but it is a little circular. yes, that is possible with kdom. You would need to search for the nodes recurively, then call node.addChild(0, Node.TEXT, "new Value") > Further i have to write something like xPath. is it rigt, that this it not > jet implemented? Not in KXML, but there may be something on xmlpull.org, I am not sure, just take a look.... Best, Stefan