XML technologies / XML / Python & XML / XML validation and dialects

(Excerpt from "Python & XML" by Christopher A. Jones & Fred L. Drake, Jr.)

When XML forms the basis for transactions between two parties, it is important to know whether a document is correctly structured; contractual obligations across company boundaries, for example, define each party’s responsibilities. This section works with structured XML formats, converts non-XML information into structured XML and validates XML documents against their DTDs. We examine aspects of working with established XML dialects, the possible effects of validation on system design, and ebXML (Electronic Business XML) without going into excessive detail.

First, let us look at the underlying technologies: document type definitions (DTDs), validating parsers and Web forms. These technologies make XML document exchange reliable and flexible. We then explore the different aspects of validation through several detailed examples.

  

  

 

 

 

back to top