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
478 B
XML
14 lines
No EOL
478 B
XML
<n0:doc xmlns:n0="">
|
|
<n0:e1></n0:e1>
|
|
<n0:e2></n0:e2>
|
|
<n0:e3 id="elem3" name="elem3"></n0:e3>
|
|
<n0:e4 id="elem4" name="elem4"></n0:e4>
|
|
<n1:e5 xmlns:n1="http://example.org" xmlns:n2="http://www.ietf.org" xmlns:n3="http://www.w3.org" attr="I'm" attr2="all" n2:attr="sorted" n3:attr="out"></n1:e5>
|
|
<n0:e6>
|
|
<n2:e7 xmlns:n2="http://www.ietf.org">
|
|
<n0:e8>
|
|
<n0:e9 attr="default"></n0:e9>
|
|
</n0:e8>
|
|
</n2:e7>
|
|
</n0:e6>
|
|
</n0:doc> |