Copyright (c) 2001-2002 by Jim Menard <email@example.com>
Released under the same license as Ruby. See www.ruby-lang.org/en/LICENSE.txt.
This script is a complete version of the example given in the README file. It overrides NQXML::Entity.to_s to print the entity's class name and uses an NQXML::StreamingParser to print the class name of each entity seen.
If an NQXML::ParserError is seen, the error message is printed and parsing is halted.
|Classes and Modules|