I never liked XML, and I always tried to avoid it. And the day has come.
When I tried to parse XML, it was very difficult. I used the DOM parser, when I called getChildNodes()for Node, it returned NodeList. I had to use casting when using XPath.
Is there any Java XML parsing library similar to the WebDriver WebElement mechanism where it getChildNodes()returns List<Node>(or Collection, Iterable, etc.), I do not need to do the casting. In other words, is there an XML parser library that is elegant and simple.
The library can only be read, I do not need manipulation.
source
share