XML Canonicalizer

Stylus Studio® 2008 Release 2 features a handy XML canonicalizer among its' many XML editing utilities, for converting any XML document into its canonical form, a W3C standard for normalizing XML files (i.e. removing XML whitespace, etc.)

Canonicalizing an XML File

Just load any XML file in the Stylus Studio® XML editor, and click the "Make Canonical XML" button - Stylus Studio® will automatically convert the current XML file into its canonical form representation. The XML canonicalizer is easy to use and is illustrated below:

Canonicalizing an XML File

The Rules of XML Canonical Form

Think of XML canonical form as a normalized format for XML documents for comparing two XML documents for equality, for example, suppose you wanted to compare documents for versioning or security reasons. The W3C addresses this problem with the XML Canonicalization spec (c14n), which defines a standard form for an XML document that is guaranteed to provide proper bit-wise comparisons and thus consistent digital signatures, and Stylus Studio® is the only XML IDE to provide built-in support for XML canonicalization, as illustrated here:

Canonicalize XML documents with Stylus Studio®

When you convert XML document into its canonical form, Stylus Studio® automatically performs the following XML editing operations for you:

  • The XML document is encoded in UTF-8.
  • Line breaks are normalized to "#xA" on input, before parsing.
  • XML attribute values are normalized, as if by a validating processor.
  • Default XML attributes are added to each element, as if by a validating processor.
  • CDATA sections are replaced with their literal character content.
  • Character and parsed entity references are replaced with the literal characters (excepting special characters).
  • Special characters in attribute values and character content are replaced by character references (as usual for well-formed XML).
  • The XML declaration and DTD are removed.
  • Empty elements are converted to start-end tag pairs.
  • Whitespace outside of the document element and within start and end tags is normalized.
  • All whitespace in character content is retained (excluding characters removed during line feed normalization).
  • Attribute value delimiters are set to quotation marks (double quotes).
  • Superfluous namespace declarations are removed from each element.
  • Lexicographic order is imposed on the namespace declarations and attributes of each element.

Stylus Studio® 2008 Release 2's XML Canonicalizer is the easiest way to normalize XML documents in a standard-based way.

Converting Static HTML to XML

This video tutorial covers how to convert static HTML to XML.

Sun Multi-Schema XML Validator (MSV)

Learn how to integrate the Multi Schema Validator (MSV) into Stylus Studio as one of the Custom Validation Engines. It will work for files with a DTD, a single XSD, or both a DTD and a single XSD.

DTD Editor

The Stylus Studio DTD Editor lets you visually develop Document Type Definitions (DTD) to structure XML documents. The DTD Editor also includes tools and utilites for validating XML against DTD's, converting DTD's, and generating DTD's.

XML Code Folding

Stylus Studio's XML Editor features XML code folding, a powerful and intuitive way to maximize limited screen real-estate and help make sense of large XML files.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus XML Canonicalizer

Normalize XML files with Stylus Studio's XML Canonicalizer Download a free trial!

Attend a Live Webinar This Week!

Learn about Stylus Studio's unique features and benefits in just under an hour. Register for the Stylus Studio QuickStart Training WebCast!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.