Skip Links

Network World

  • Social Web 
  • Email 
  • Close

Taming the XML beast

By James Kobielus , Network World , 01/10/2005
Kobielus
Newsletter Signup
  • Share/Email
  • Tweet This
  • Comment
  • Print

XML is here to stay, having become the standard markup syntax for most new Web services protocols, formats and interfaces, such as Simple Object Access Protocol. The flood of XML on networks will continue to grow, whether or not IT professionals are prepared.

Traditionally, XML's biggest disadvantage has been its bloated, ASCII-text-based encoding, which requires that you send considerably more bits than in non-XML binary data transfers. Companies can't address XML's bandwidth consumption issues effectively without universal standards that describe how this content can be encoded in binary formats. Fortunately, the industry has made notable progress in this area.

One approach is to rely on various industry specifications that use an XML-based SOAP message as a manifest for describing binary data files within SOAP's surrounding HTTP packet. SOAP with Attachments (SwA) and Microsoft's Direct Internet Messaging Extensions (DIME) transmit opaque, non-textual data - such as images and digital signatures - along with an XML document. But they don't support binary encoding of all content within XML documents.

Neither SwA nor DIME has achieved broad adoption within the industry. Recognizing the critical need for a consensus standard for compact XML encodings, the World Wide Web Consortium (W3C) has developed new candidate recommendations for binary encoding of XML within SOAP 1.2 payloads: SOAP Message Transmission Optimization Mechanism (MTOM) and XML-binary Optimized Packaging (XOP). The W3C's XML Binary Characterization Working Group has released the first public working draft of its "XML Binary Characterization Properties" document, describing properties desirable for MTOM, XOP or any other serialization of the XML data model.

MTOM and XOP have much broader vendor support than any predecessor specification for XML-to-binary serialization. MTOM and XOP describe how to produce optimized binary encodings of XML content within SOAP 1.2 payloads. MTOM and XOP preserve one of XML's great strengths: the transparency of the tagged, logical data structure that a particular document implements.

For any given XML document, MTOM and XOP preserve its logical transparency structure by encoding that structure in a text-based "XML Information Set" manifest, while allowing any of the document's contents to be serialized to any binary encoding. In particular, these specifications support binary encoding of XML content as Multipurpose Internet Messaging Extensions Multipart/Related body parts and encapsulation of those parts - along with the associated XML Information Set manifest - within SOAP 1.2 envelopes. The specifications also describe how to encapsulate binary-encoded XML body parts directly within HTTP packets (in cases where SOAP doesn't enter the equation), thereby reducing the size of XML files for transmission and/or storage.

  • Share/Email
  • Tweet This
  • Comment
  • Print
Comment
Login
Forgot your account info?
Add comment
Anonymous comments subject to approval. Register here for member benefits.
Have a NetworkWorld account? Log in here. Register now for a free account.

Videos

rssRss Feed