Canonical XML


Amplify’d from en.wikipedia.org

Canonical XML specifies a number of other details, some of which are:

  • the UTF-8 encoding is used

  • line-ends are represented using the character 0x0A

  • whitespace in attribute values is normalized

  • entity references are expanded

  • CDATA marked sections are not used

  • empty elements are encoded as start/end pairs, not using the special empty-element syntax

  • default attributes are made explicit

  • superfluous namespace declarations are deleted

According to the W3C, if two XML documents have the same canonical form, then the two documents are logically equivalent within the given application context (except for limitations regarding a few unusual cases).

Read more at en.wikipedia.org

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s