★ wanayoo — archive 1999 http://java.sun.com/xml/docs/tutorial/TOC.htmlNouvelle recherche | Portail wanayoo
Previous | Next | Index | TOC | Top | Top Contents Index Glossary

Working with XML: Table of Contents

Understanding XML and the Java XML APIs
A Quick Introduction to XML
What is XML?
Tags and Attributes
Empty Tags
Comments in XML Files
The XML Prolog
Processing Instructions
 
Why is XML Important?
What can you do with XML?
 
XML and Related Specs: Digesting the Alphabet Soup
W3C Recommendations
SAX
DOM
DTD
RDF
Namespaces
W3C Proposed Recommendations
RDF Schema
W3C Working Drafts
XSL
XLL
XLink
XPointer
XHTML
XML Schema
W3C "Notes"
Schema Proposals
DDML / XSchema
DCD
SOX
Other W3C Notes
ICE
Standards that Build on XML
SMIL
MathML
SVG
DrawML
eCommerce Standards
cXML
CBL
Software Administration and Maintenance Standards
DMTF
WebDAV

An Overview of Sun's Java XML APIs
The SAX Parser
Other SAX APIs
The Document Object Model (DOM)
Where Do You Go from Here?
 
Designing an XML Data Structure
Saving Yourself Some Work
Attributes and Elements
Forced Choices
Sytlistic Choices
Normalizing Data
Normalizing DTDs
 
 
Serial Access with the Simple API for XML (SAX)
Writing a Simple XML File
Creating the File
Writing the Declaration
Adding a Comment
Defining the Root Element
Adding Attributes to an Element
Adding Nested Elements
Adding HTML-Style Text
Adding an Empty Element
The Finished Product
 
Echoing an XML File with the SAX Parser
Create the Skeleton
Import the Classes We Need
Setting up for I/O
Setting up the Parser
Implementing the DocumentHandler Interface
Writing the Output
Spacing the Output
Handling Document Events
Compiling the Program
Running the Program
Command Scripts
Checking the Output
Identifying the Events
Compressing the Output
Inspecting the Output
Documents and Data
Adding Additional Event Handlers
Identifying the Document's Location
Handling Processing Instructions
Summary
Handling Errors with the Nonvalidating Parser
Introducing an Error
Handling a SAXParseException
Handling a SAXException
Improving the SAXParseException Handler
Understanding NonFatal Errors
Handling NonFatal Errors
Handling Warnings
Substituting and Inserting Text
Handling Special Characters
Predefined Entities
Character References
Using an Entity Reference in an XML Document
Handling Text with XML-Style Syntax
Handling CDATA and Other Characters
Creating a Document Type Definition (DTD)
Basic DTD Definitions
Defining Text and Nested Elements
Limitations of DTDs
Special Element Values in the DTD
Referencing the DTD
DTD's Effect on the Nonvalidating Parser
Tracking Ignorable Whitespace
Cleanup
Documents and Data
Empty Elements, Revisited
Defining Attributes and Entities in the DTD
Defining Attributes in the DTD
Defining Entities in the DTD
Echoing the Entity References
Additional Useful Entities
Referencing External Entities
Echoing the External Entity
Summarizing Entities
Referencing Binary Entitites
Using a MIME Data Type
The Alternative: Using Entity References
Using the Validating Parser
Changing Parsers
Using an Environment Variable
Experimenting with Validation Errors
Error Handling in the Validating Parser
Defining Parameter Entities
Creating and Referencing a Parameter Entity
Conditional Sections
Parsing the Parameterized DTD
DTD Warnings
Using a LexicalEventListener
How the LexicalEventListener Works
Working with a LexicalEventListener
Echoing Comments
Echoing Other Lexical Information
Using the DTDHandler and EntityResolver
The DTDHandler API
The EnityResolver API
Manipulating Document Contents with the Document Object Model (DOM) [In Progress]
Reading XML data into a DOM
Two Ways to Create a DOM
The Fast Way
The Best Way
Building an Example
Duplicating XML Source in the DOM
Echoing Tree Nodes
Adding Lexical Information to the Tree
Constructing a JTree from a DOM
Manipulating a DOM
Previous | Next | Index | TOC | Top | Top Contents Index Glossary