Is there a way to have a single implementation in Java that can read/parse an XML file with normal elements and another with prefixed elements? Both versions have the same structure.
i.e.
XML-1
<root>
<element attribute="value">
</element>
</root>
XML-2
<pre:root xmlns:pre="someURL">
<pre:element attribute="value">
</pre:element>
</pre:root>