Removing Map entry element number check, to avoid need to check for whitespace elements
Exporting localName for debugging
Adding Map tests and sharing common XML parsing code