XPath Data Model for Canonicalisation |
XML canonicalization is defined in terms of the XPath definition of a node-set.
If an XML document must be converted to a node-set, XPath REQUIRES that an XML processor be used to create the nodes of its data model to fully represent the document. The XML processor performs the following tasks in order:
normalize line feeds
normalize attribute values
replace CDATA sections with their character content
resolve character and parsed entity references
The input octet stream MUST contain a well-formed XML document, but the input need not be validated. The declarations in the document type declaration are used to help create the canonical form.