02.06.2013 Views

XML Demystified

XML Demystified

XML Demystified

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

106<br />

<strong>XML</strong> Demystifi ed<br />

The Java transformer is a program written in the Java programming language<br />

that can run on any computer. It can read, create, and modify an <strong>XML</strong> document.<br />

However, the Java transformer uses its own stylesheet rather than the stylesheet that<br />

is referenced in the <strong>XML</strong> document. And unlike the SAX and DOM parsers, the<br />

same version of the Java transformer can be used on every Java-compatible<br />

computer.<br />

Quiz<br />

1. The SAX parser is able to transverse an <strong>XML</strong> document.<br />

a. True<br />

b. False<br />

2. The SAX parser creates a node by using<br />

a. createElement()<br />

b. createTextNode()<br />

c. createComment()<br />

d. None of the above<br />

3. The SAX parser reacts to a new element by using<br />

a. endElement()<br />

b. characters()<br />

c. startElement()<br />

d. startDocument()<br />

4. Which of the following is represented as a node in the tree a DOM parser<br />

creates?<br />

a. CDATA sections<br />

b. Comments<br />

c. Elements<br />

d. All of the above<br />

5. A Java transformer can use<br />

a. Its own stylesheet<br />

b. DTD

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

Saved successfully!

Ooh no, something went wrong!