added default to catch unrecognized xml node types
added text encoding tests
added extra xml input scenarios