StAX
Please turn off all
XML API Styles
Pull Parsing
Pull Parsing is
Pull APIs
StAX
Major Classes and Interfaces
Simple Wellformedness Checker
Output from a Simple Wellformedness Checker
Event Codes
Listening to Events
Output from EventLister
XMLStreamReader getter methods depend on the current state
getText()
getText() Example
Output
isFoo() and hasFoo()
hasText() Example
More efficient way of getting text
Reusable Text Arrays
Names
QName Class
Names Example
Names Example
Names Example Output
RSSLister
RSSLister Output
Improved RSSLister
RSSLister Output
The nextTag() method
Attributes
Attributes Example: XLinkSpider
Output from the PullSpider
Processing Instructions
Pull Processing Instructions Example
Comments
Output from CommentPuller
XML Declaration
Example: PullDeclaration
Output from PullDeclaration
Namespaces
The NamespaceContext Class
Questions?
Requirements
XMLInputFactory Properties
XMLReporter
Example: PullValidator
Location
Locating an Implementation of XMLInputFactory
Questions?
XMLStreamWriter
XMLStreamWriter Example: Convert RDDL to XHTML
Example: RDDLStripper
One of my favorite features
StreamFilter
XMLIterator
15 Kinds of XMLEvents
XMLEvent Methods
StartElement
EndElement
XMLEventReader
Attribute
Characters
DTD
Comment
ProcessingInstruction
StartDocument
EndDocument
StartEntity
EndEntity
EntityDeclaration
EntityReference
Namespace
NotationDeclaration
XMLEventWriter
EventFilter
Questions?
To Learn More
Questions?
Entire Presentation as Single File
Start
|
Cafe con Leche
Copyright 2000-2004 Elliotte Rusty Harold
Last Modified March 19, 2004