Tuesday, February 2, 2010

Explain about XML Canonicalization

Answer
Canonicalization refers to finding the simplified form of an XML document.
XML files may not contain the same sequence of characters (bytes or octets) even if they are logically equivalent. This is where we need to canonicalize them and check their canonical forms.
Steps to canonicalize an XML document
  • Encoding schemes should represent characters by octets.XML documents should be encoded in UTF-8 encoding.
  • The canonical form needs all line breaks to be #xA.
  • All attributes need to be normalized in canonical form. 

0 Comments: