I am trying to find an XML parsing tool that allows to parse documents which contain elements with no consistent names. e.g
<child1 name="name1" />
<child2 name="name2" />
As you see child element is not consistent. I tried to use XStream but it doesn't work for me because it stores aliases in a map together with the values which are class names.
I am looking for something that would allow me to give Regular Expressions as aliases.
Any help with some example or something?
Thank you in advance