15.5.  Review Questions

[ fromfile: xmlparsing-questions.xml id: xmlparsing-questions ]

  1. If there is a syntax error in your XML file, how do you determine the cause and location?

  2. SAX is an event-driven parser. What kinds of events does it respond to?

  3. Compare and contrast SAX and DOM. Why would you use one rather than the other?

  4. If you have a QDomNode and it is actually "pointing" to a QDomElement, how do you get a reference to the QDomElement?

  5. What are the advantages of using QXmlStreamReader over SAX?

  6. What are the advantages of using QXmlStreamReader over DOM?