Refactor xml parser implementation and tests to be compatible with both sjsxp and woodstox

@bug W-2193072@
@rev fabbott@
Merging origin/bob/master-pending/compatible-xml-parser into master