| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <root> |
| 3 | <!-- |
| 4 | According to the Namespaces in XML 1.1 (Second Edition) specification, https://www.w3.org/TR/xml-names11/#uniqAttrs, we should not have a node like this |
| 5 | <child xmlns:foo="http://www.example.com/myns" xmlns:bar="http://www.example.com/myns" attribute="value1" foo:attribute="foo1" bar:attribute="bar1">some text</child> |
| 6 | as both `foo` and `bar` have been bound to identical namespace names. |
| 7 | --> |
| 8 | <child xmlns:foo="http://www.example.com/myns" xmlns:bar="http://www.example.com/myns" attribute="value1" foo:attribute="foo1" bar:attr="bar1">some text</child> |
| 9 | <child xmlns:foo="http://www.example.com/myns" attribute="value2" foo:attribute="foo2" /> |
| 10 | <child xmlns:bar="http://www.example.com/myns" attribute="value3" bar:attribute="bar3">more text</child> |
| 11 | </root> |