O'Reilly logo

Java™ Drawing with Apache Batik: A Tutorial by Alexander Kolesnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Validating XML Documents

One of the benefits of XML is you can verify the data integrity of an XML document by validating it. A valid XML document must be well-formed and follows a set of rules. You can check the validity of an XML document against one of two types of rules: Document Type Definitions (DTDs) and schemas.

A valid XML document must have a DTD or a schema associated with it, against which the correctness of the XML document can be verified. For example, an XML document that contains the data structure for some products may define that the root element is <products> and there are five child elements under it: <name>, <description>, <product_id>, <price>, and <supplier_id>. If a document has a products element as its root, but the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required