<class name="QXmlReader" doc="/** <p>The <a href="QXmlReader.html#QXmlReader()"><tt>QXmlReader</tt></a> class provides an interface for XML readers (i.e&#x2e; parsers).</p> <p>This abstract class provides an interface for all of Qt's XML readers. Currently there is only one implementation of a reader included in Qt's XML module: <a href="QXmlSimpleReader.html"><tt>QXmlSimpleReader</tt></a>. In future releases there might be more readers with different properties available (e.g&#x2e; a validating parser).</p> <p>The design of the XML classes follows the <a href="http://www.saxproject.org/">SAX2 Java interface</tt></a>, with the names adapted to fit Qt naming conventions. It should be very easy for anybody who has worked with SAX2 to get started with the Qt XML classes.</p> <p>All readers use the class <a href="QXmlInputSource.html"><tt>QXmlInputSource</tt></a> to read the input document. Since you are normally interested in particular content in the XML document, the reader reports the content through special handler classes (<a href="QXmlDTDHandler.html"><tt>QXmlDTDHandler</tt></a>, <a href="QXmlDeclHandler.html"><tt>QXmlDeclHandler</tt></a>, <a href="QXmlContentHandler.html"><tt>QXmlContentHandler</tt></a>, <a href="QXmlEntityResolver.html"><tt>QXmlEntityResolver</tt></a>, <a href="QXmlErrorHandler.html"><tt>QXmlErrorHandler</tt></a> and <a href="QXmlLexicalHandler.html"><tt>QXmlLexicalHandler</tt></a>), which you must subclass, if you want to process the contents.</p> <p>Since the handler classes only describe interfaces you must implement all the functions. We provide the <a href="QXmlDefaultHandler.html"><tt>QXmlDefaultHandler</tt></a> class to make this easier: it implements a default behavior (do nothing) for all functions, so you can subclass it and just implement the functions you are interested in.</p> <p>Features and properties of the reader can be set with <a href="QXmlReader.html#setFeature(java.lang.String, boolean)"><tt>setFeature</tt></a> and setProperty() respectively. You can set the reader to use your own subclasses with <a href="QXmlReader.html#setEntityResolver(com.trolltech.qt.xml.QXmlEntityResolverInterface)"><tt>setEntityResolver</tt></a>, <a href="QXmlReader.html#setDTDHandler(com.trolltech.qt.xml.QXmlDTDHandlerInterface)"><tt>setDTDHandler</tt></a>, <a href="QXmlReader.html#setContentHandler(com.trolltech.qt.xml.QXmlContentHandlerInterface)"><tt>setContentHandler</tt></a>, <a href="QXmlReader.html#setErrorHandler(com.trolltech.qt.xml.QXmlErrorHandlerInterface)"><tt>setErrorHandler</tt></a>, <a href="QXmlReader.html#setLexicalHandler(com.trolltech.qt.xml.QXmlLexicalHandlerInterface)"><tt>setLexicalHandler</tt></a> and <a href="QXmlReader.html#setDeclHandler(com.trolltech.qt.xml.QXmlDeclHandlerInterface)"><tt>setDeclHandler</tt></a>. The parse itself is started with a call to <a href="QXmlReader.html#parse(com.trolltech.qt.xml.QXmlInputSource)"><tt>parse</tt></a>.</p> @see <a href="QXmlSimpleReader.html"><tt>QXmlSimpleReader</tt></a> */"> <method name="public QXmlReader()"/> <method name="public abstract com.trolltech.qt.xml.QXmlDTDHandlerInterface DTDHandler()" doc="/** <p>Returns the DTD handler or 0 if none was set.</p> @see <a href="QXmlReader.html#setDTDHandler(com.trolltech.qt.xml.QXmlDTDHandlerInterface)"><tt>setDTDHandler</tt></a> */"/> <method name="public abstract com.trolltech.qt.xml.QXmlContentHandlerInterface contentHandler()" doc="/** <p>Returns the content handler or 0 if none was set.</p> @see <a href="QXmlReader.html#setContentHandler(com.trolltech.qt.xml.QXmlContentHandlerInterface)"><tt>setContentHandler</tt></a> */"/> <method name="public abstract com.trolltech.qt.xml.QXmlDeclHandlerInterface declHandler()" doc="/** <p>Returns the declaration handler or 0 if none was set.</p> @see <a href="QXmlReader.html#setDeclHandler(com.trolltech.qt.xml.QXmlDeclHandlerInterface)"><tt>setDeclHandler</tt></a> */"/> <method name="public abstract com.trolltech.qt.xml.QXmlEntityResolverInterface entityResolver()" doc="/** <p>Returns the entity resolver or 0 if none was set.</p> @see <a href="QXmlReader.html#setEntityResolver(com.trolltech.qt.xml.QXmlEntityResolverInterface)"><tt>setEntityResolver</tt></a> */"/> <method name="public abstract com.trolltech.qt.xml.QXmlErrorHandlerInterface errorHandler()" doc="/** <p>Returns the error handler or 0 if none is set.</p> @see <a href="QXmlReader.html#setErrorHandler(com.trolltech.qt.xml.QXmlErrorHandlerInterface)"><tt>setErrorHandler</tt></a> */"/> <method name="public abstract boolean feature(java.lang.String name)" doc="/** <p>Equivalent to <a href="QXmlReader.html#feature(java.lang.String)">feature</tt></a>(<tt>name</tt>, 0). @see <a href="QXmlReader.html#setFeature(java.lang.String, boolean)"><tt>setFeature</tt></a> */"/> <method name="public final boolean feature(java.lang.String name)" doc="/** <p>Equivalent to <a href="QXmlReader.html#feature(java.lang.String)">feature</tt></a>(<tt>name</tt>, 0). */"/> <method name="public abstract boolean hasFeature(java.lang.String name)" doc="/** <p>Returns <tt>true</tt> if the reader has the feature called <tt>name</tt>; otherwise returns false.</p> @see <a href="QXmlReader.html#feature(java.lang.String)"><tt>feature</tt></a> @see <a href="QXmlReader.html#setFeature(java.lang.String, boolean)"><tt>setFeature</tt></a> */"/> <method name="public abstract boolean hasProperty(java.lang.String name)" doc="/** <p>Returns true if the reader has the property <tt>name</tt>; otherwise returns false.</p> @see <tt>property</tt> @see <tt>setProperty</tt> */"/> <method name="public abstract com.trolltech.qt.xml.QXmlLexicalHandlerInterface lexicalHandler()" doc="/** <p>Returns the lexical handler or 0 if none was set.</p> @see <a href="QXmlReader.html#setLexicalHandler(com.trolltech.qt.xml.QXmlLexicalHandlerInterface)"><tt>setLexicalHandler</tt></a> */"/> <method name="public abstract boolean parse(com.trolltech.qt.xml.QXmlInputSource input)" doc="/** <p>Reads an XML document from <tt>input</tt> and parses it. Returns true if the parsing was successful; otherwise returns false.</p> */"/> <method name="public abstract void setContentHandler(com.trolltech.qt.xml.QXmlContentHandlerInterface handler)" doc="/** <p>Sets the content handler to <tt>handler</tt>.</p> @see <a href="QXmlReader.html#contentHandler()"><tt>contentHandler</tt></a> */"/> <method name="public abstract void setDTDHandler(com.trolltech.qt.xml.QXmlDTDHandlerInterface handler)" doc="/** <p>Sets the DTD handler to <tt>handler</tt>.</p> @see <a href="QXmlReader.html#DTDHandler()"><tt>DTDHandler</tt></a> */"/> <method name="public abstract void setDeclHandler(com.trolltech.qt.xml.QXmlDeclHandlerInterface handler)" doc="/** <p>Sets the declaration handler to <tt>handler</tt>.</p> @see <a href="QXmlReader.html#declHandler()"><tt>declHandler</tt></a> */"/> <method name="public abstract void setEntityResolver(com.trolltech.qt.xml.QXmlEntityResolverInterface handler)" doc="/** <p>Sets the entity resolver to <tt>handler</tt>.</p> @see <a href="QXmlReader.html#entityResolver()"><tt>entityResolver</tt></a> */"/> <method name="public abstract void setErrorHandler(com.trolltech.qt.xml.QXmlErrorHandlerInterface handler)" doc="/** <p>Sets the error handler to <tt>handler</tt>. Clears the error handler if <tt>handler</tt> is 0.</p> @see <a href="QXmlReader.html#errorHandler()"><tt>errorHandler</tt></a> */"/> <method name="public abstract void setFeature(java.lang.String name, boolean value)" doc="/** <p>Sets the feature called <tt>name</tt> to the given <tt>value</tt>. If the reader doesn't have the feature nothing happens.</p> @see <a href="QXmlReader.html#feature(java.lang.String)"><tt>feature</tt></a> @see <a href="QXmlReader.html#hasFeature(java.lang.String)"><tt>hasFeature</tt></a> */"/> <method name="public abstract void setLexicalHandler(com.trolltech.qt.xml.QXmlLexicalHandlerInterface handler)" doc="/** <p>Sets the lexical handler to <tt>handler</tt>.</p> @see <a href="QXmlReader.html#lexicalHandler()"><tt>lexicalHandler</tt></a> */"/> </class>