Fix for invalid XML exception with namespaces

Fix for issue prujohn/dart-xml#10.

All unit tests pass.