Over the past couple of days I realized just how annoying it is to do simple data-lookups on arbitrary XML in Java.
The only two real options we seem to have are configuring XStream or JaxB, which is more hassle than it’s worth for simple data, or parsing the XML and manually traversing the DOM. Neither of these, honestly, seems like a sufficient easy solution to such a common problem.
That’s why I created, and open-sourced, XmlBeanUtils.
XmlBeanUtils is a simple library that allows you to load arbitrary XML into a Bean-like object for quick data access. For a more full description, read the full blog post.
(Please note: Apache Commons BeanUtils are required as a transitive dependency.)