XMLReader functions XMLReader
&reftitle.intro; The XMLReader extension is an XML Pull parser. The reader acts as a cursor going forward on the document stream and stopping at each node on the way.
&reference.xmlreader.configure;
&reftitle.classes;
<classname>XMLReader</classname>
&reftitle.methods; - Close the XMLReader input - Export current node to a DOM node - Get value of attribute by name - Get value of attribute by position - Get value of attribute by name and URI - Indicates if parser property is set or not - Indicates if document is valid - Get URI for prefix in scope of node - Positions reader on named attribute - Positions reader on attribute by index - Position reader on attribute by name and URI - Move to parent element of current attribute node - Move to first attribute of node - Move to next attribute of node - Move to next element skipping children - Set URI to be parsed - Move to next node in stream - Set parser property - Set URI of RelaxNG schema to validate against - Set string containing RelaxNG schema to validate against - Set string of data to be parsed
&reftitle.properties; <tgroup cols="4"> <thead> <row> <entry>Name</entry> <entry>Type</entry> <entry>Read-only</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>attributeCount</entry> <entry>int</entry> <entry>yes</entry> <entry>The number of attributes on the node</entry> </row> <row> <entry>baseURI</entry> <entry>string</entry> <entry>yes</entry> <entry>The base URI of the node</entry> </row> <row> <entry>depth</entry> <entry>int</entry> <entry>yes</entry> <entry>Depth of the node in the tree starting at 0</entry> </row> <row> <entry>hasAttributes</entry> <entry>bool</entry> <entry>yes</entry> <entry>Indicates if node has attributes</entry> </row> <row> <entry>hasValue</entry> <entry>bool</entry> <entry>yes</entry> <entry>Indicates if node has a text value</entry> </row> <row> <entry>isDefault</entry> <entry>bool</entry> <entry>yes</entry> <entry>Indicates if attribute is defaulted from DTD</entry> </row> <row> <entry>isEmptyElement</entry> <entry>bool</entry> <entry>yes</entry> <entry>Indicates if node is an empty element tag</entry> </row> <row> <entry>localName</entry> <entry>string</entry> <entry>yes</entry> <entry>The local name of the node</entry> </row> <row> <entry>name</entry> <entry>string</entry> <entry>yes</entry> <entry>The qualified name of the node</entry> </row> <row> <entry>namespaceURI</entry> <entry>string</entry> <entry>yes</entry> <entry>The URI of the namespace associated with the node</entry> </row> <row> <entry>nodeType</entry> <entry>int</entry> <entry>yes</entry> <entry>The node type for the node</entry> </row> <row> <entry>prefix</entry> <entry>string</entry> <entry>yes</entry> <entry>The prefix of the namespace associated with the node</entry> </row> <row> <entry>value</entry> <entry>string</entry> <entry>yes</entry> <entry>The text value of the node</entry> </row> <row> <entry>xmlLang</entry> <entry>string</entry> <entry>yes</entry> <entry>The xml:lang scope which the node resides</entry> </row> </tbody> </tgroup> </table> </section> </section> </section> &reference.xmlreader.constants; </partintro> &reference.xmlreader.functions; </reference> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->