Java Reference
In-Depth Information
Figure 10-4. Exercise 1's books.xml content is presented via a web page.
Summary
ApplicationsoftenuseXMLdocumentstostoreandexchangedata.Beforeyoucanun-
derstand these documents, you need to understand XML. This understanding requires
knowledge of the XML declaration, elements and attributes, character references and
CDATA sections, namespaces, and comments and processing instructions. It also in-
volveslearningwhatitmeansforadocumenttobewellformed,andalsowhatitmeans
for a document to be valid in terms of DTDs and XML Schema-based schemas.
You also need to learn how to process XML documents via JAXP's SAX, DOM,
StAX,XPath,andXSLTAPIs.SAXisusedtoparsedocumentsviaacallbackparadigm,
DOMisusedtoparseandcreatedocumentsfromnodetrees,StAXisusedtoparseand
createdocumentsinstream-basedorevent-basedcontexts,XPathisusedtosearchnode
trees in a more succinct manner than that offered by the DOM API, and XSLT (with
helpfromXPath)isusedtotransformXMLcontenttoXML,HTML,oranotherformat.
Search WWH ::




Custom Search