go-pkg-xmlx/test3.xml
Felix Geisendörfer 08c0943149 fix: String() handled ns prefixes incorrectly
Previously parsing a document like this:

  <root xmlns:foo='http:/example.org/foo' foo:bar='1'/>

Would produce an incorrect document when turning it back into a string:

  <root xmlns:foo='http:/example.org/foo' http:/example.org/foo:bar='1'/>

This patch fixes this by implementing a proper lookup for namespace
prefixes.
2013-09-04 00:35:22 +02:00

8 lines
193 B
XML

<root xmlns:foo='http:/example.org/foo'>
<child foo:bar='1'>
<grandchild xmlns:foo=''>
<great-grandchild foo:bar='2'>
</great-grandchild>
</grandchild>
</child>
</root>