mirror of
https://github.com/python/cpython
synced 2026-10-23 07:34:49 +03:00
* Implement C14N 2.0 as a new canonicalize() function in ElementTree. Missing features: - prefix renaming in XPath expressions (tag and attribute text is supported) - preservation of original prefixes given redundant namespace declarations
14 lines
No EOL
405 B
XML
14 lines
No EOL
405 B
XML
<doc>
|
|
<e1></e1>
|
|
<e2></e2>
|
|
<e3 id="elem3" name="elem3"></e3>
|
|
<e4 id="elem4" name="elem4"></e4>
|
|
<e5 xmlns="http://example.org" xmlns:a="http://www.w3.org" xmlns:b="http://www.ietf.org" attr="I'm" attr2="all" b:attr="sorted" a:attr="out"></e5>
|
|
<e6>
|
|
<e7 xmlns="http://www.ietf.org">
|
|
<e8 xmlns="">
|
|
<e9 attr="default"></e9>
|
|
</e8>
|
|
</e7>
|
|
</e6>
|
|
</doc> |