10.1. XML overview

Markup languages, which allow text data to be structured using a set of prescribed tags, have been in use for many years. XML is a particularly simple markup language. It defines neither the tags nor the grammar according to which the tags can be combined.

Tag names for XML documents are defined by the document author in accordance with the information being marked up. This affords great flexibility. In a JDO persistence descriptor, the tags include <jdo>, <package>, and <class>. Tags are not case sensitive.

All XML documents must be well formed, in that each opening tag must be matched by a corresponding closing tag. Closing tags carry a preceding forward slash character, as in </jdo>, </package>, and </class>. The sequence ...

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.