Sams Teach Yourself XML in 24 Hours, Complete Starter Kit (3rd Edition)

In this hour, you learned about one of the two popular APIs for parsing XML filesSAX. You already covered the DOM in the previous lesson, so this lesson wrapped up some loose ends in terms of giving you a more rounded understanding of XML parsing. SAX (Simple API for XML) is an event-driven parser that is usually combined with a custom program designed to process the events generated by the parser. You worked through an example of such an application in this hour that demonstrated how to use the Xerces SAX parser to iterate through the entities in an XML document and print out detailed information about them.

Категории