10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

StAX API<br />

554<br />

TABLE 18–3 Example of Iterator API Event Mapping<br />

# Element/Attribute Event<br />

1 version="1.0" StartDocument<br />

2 isCData = false<br />

data = "\n"<br />

IsWhiteSpace = true<br />

3 qname = BookCatalogue:http://www.publishing.org<br />

attributes = null<br />

namespaces = {BookCatalogue" -> http://www.publishing.org"}<br />

4 qname = Book<br />

attributes = null<br />

namespaces = null<br />

5 qname = Title<br />

attributes = null<br />

namespaces = null<br />

6 isCData = false<br />

data = "Yogasana Vijnana: the Science of Yoga\n\t"<br />

IsWhiteSpace = false<br />

7 qname = Title<br />

namespaces = null<br />

8 qname = ISBN<br />

attributes = null<br />

namespaces = null<br />

9 isCData = false<br />

data = "81-40-34319-4\n\t"<br />

IsWhiteSpace = false<br />

10 qname = ISBN<br />

namespaces = null<br />

11 qname = Cost<br />

attributes = {"currency" -> INR}<br />

namespaces = null<br />

12 isCData = false<br />

data = "11.50\n\t"<br />

IsWhiteSpace = false<br />

13 qname = Cost<br />

namespaces = null<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010<br />

Characters<br />

StartElement<br />

StartElement<br />

StartElement<br />

Characters<br />

EndElement<br />

StartElement<br />

Characters<br />

EndElement<br />

StartElement<br />

Characters<br />

EndElement

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!