July 2000
Intermediate to advanced
400 pages
7h 33m
English
The following two examples illustrate how to generate an XML document, using the SAX2 and DOM Level 2 APIs. The following XML document contains most of the core information items defined by the Infoset (including elements, attributes, characters, processing instructions, and namespace declarations), as well as a peripheral item, in this case a comment.
<?xml version="1.0"?>
<?order alpha ascending?>
<art xmlns='urn:art-org:art'>
<period name="Renaissance"
xmlns:a='urn:art-org:artists'>
<a:artist>Leonardo da Vinci</a:artist>
<a:artist>Michelangelo</a:artist>
<a:artist>Donatello</a:artist>
</period>
<!-- insert period here -->
</art>The following sample Java code illustrates ...
Read now
Unlock full access