Paul Clapham wrote:It's a very long time since I used JDOM but I'm sure it had methods which allowed you to navigate through the children of a node. But I expect you're already trying to use those methods; if so then perhaps you could post the code which isn't acting the way you would like?
The problem I have is that all the examples online are simple with a simple structure. A real XML document with multiple elements and some of those elements being nested doesn't seem to be simple to parse. So far, I have not found a single example.
Tim Moores wrote:I strongly advise against using regexps for XML manipulation. Given that XML can contain all kinds of stuff in CDATA sections, it's a brittle approach compared to using one of the available libraries (XOM and dom4j are others).
Mike London wrote:Didn't find anything.
Liutauras Vilda wrote:
Mike London wrote:Didn't find anything.
For me it did and it still does.
Liutauras Vilda wrote:g tsuji, have a cow.
Certainly more elegant way to do that in this particular case.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|