Python Canonical XML


The three important files are:
    The c14n module.
    Definitions of namespaces and their URIs.
    Examples from the spec and XPath call for nodelist

#! /usr/bin/env python
'''XML Canonicalization

This module generates canonical XML of a document or element.
and includes a prototype of exclusive canonicalization

This is based on Rich Salz's element node canonicalization which was
extended to support document node canonicalization. It also now
supports XPath subset node list canonicalization. However it presently
doesn't support:
     1. Unicode -- not sure how to get eg6 to work correctly in python. 

Furthermore, it includes the following bugs thought to be in the DOM
implementation Ft.Lib.pDomlette: (Reagle)
     1. does not white space normalize attributes of type NMTOKEN and ID?
     2. seems to be include "\n" after importing external entities?

     "Joseph M. Reagle Jr." <>
     "Rich Salz" <>

$Date: 2001/07/25 15:13:40 $ by $Author: reagle $

Joseph Reagle Jr.       
W3C Policy Analyst      
IETF/W3C XML-Signature Co-Chair
W3C XML Encryption Chair

Received on Wednesday, 25 July 2001 11:20:16 UTC