background image

Iterator API Event Mapping

<< Example of Event Mapping | Choosing between Cursor >>
<< Example of Event Mapping | Choosing between Cursor >>

Iterator API Event Mapping

TABLE 18­3
Example of Iterator API Event Mapping
#
Element/Attribute
Event
1
version=
"1.0"
StartDocument
2
isCData = false
data =
"\n"
IsWhiteSpace = true
Characters
3
qname = BookCatalogue:http://www.publishing.org
attributes = null
namespaces = {BookCatalogue
" -> http://www.publishing.org"}
StartElement
4
qname = Book
attributes = null
namespaces = null
StartElement
5
qname = Title
attributes = null
namespaces = null
StartElement
6
isCData = false
data =
"Yogasana Vijnana: the Science of Yoga\n\t"
IsWhiteSpace = false
Characters
7
qname = Title
namespaces = null
EndElement
8
qname = ISBN
attributes = null
namespaces = null
StartElement
9
isCData = false
data =
"81-40-34319-4\n\t"
IsWhiteSpace = false
Characters
10
qname = ISBN
namespaces = null
EndElement
11
qname = Cost
attributes = {
"currency" -> INR}
namespaces = null
StartElement
12
isCData = false
data =
"11.50\n\t"
IsWhiteSpace = false
Characters
13
qname = Cost
namespaces = null
EndElement
StAX API
The Java EE 5 Tutorial · September 2007
556