QA


Q&A

Q.

I didn't get any of that Java stuff; how am I supposed to use SAX?

A.

If you found the Java code confusing, you may be better off looking at the documentation for the SAX implementation for a programming language that you're more comfortable using. You may want to do some online investigating to find a SAX parser that's appropriate for you. Keep in mind that the Xerces SAX parser (http://xml.apache.org/) that you used in this lesson is also available for the C++ and Perl languages. Also, if you prefer using JavaScript or Visual Basic you may want to consider using the DOM for XML processing, which you explored in Hour 16, "Parsing XML with the DOM."

Q.

How do I access the data structure created by SAX?

A.

The catch with SAX is that it doesn't create its own data structure; it's up to the programmer who writes the event handlers to generate a data structure, print the XML, or do whatever it is they want to do with the data as it's processed by the SAX parser.




Sams Teach Yourself XML in 24 Hours
Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)
ISBN: 067232797X
EAN: 2147483647
Year: 2005
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net