1*7c568831SAndroid Build Coastguard Worker<html> 2*7c568831SAndroid Build Coastguard Worker<head> 3*7c568831SAndroid Build Coastguard Worker<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4*7c568831SAndroid Build Coastguard Worker<title>xmlreader: the XMLReader implementation</title> 5*7c568831SAndroid Build Coastguard Worker<meta name="generator" content="Libxml2 devhelp stylesheet"> 6*7c568831SAndroid Build Coastguard Worker<link rel="start" href="index.html" title="libxml2 Reference Manual"> 7*7c568831SAndroid Build Coastguard Worker<link rel="up" href="general.html" title="API"> 8*7c568831SAndroid Build Coastguard Worker<link rel="stylesheet" href="style.css" type="text/css"> 9*7c568831SAndroid Build Coastguard Worker<link rel="chapter" href="general.html" title="API"> 10*7c568831SAndroid Build Coastguard Worker</head> 11*7c568831SAndroid Build Coastguard Worker<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 12*7c568831SAndroid Build Coastguard Worker<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"> 13*7c568831SAndroid Build Coastguard Worker<td><a accesskey="p" href="libxml2-xmlmodule.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td> 14*7c568831SAndroid Build Coastguard Worker<td><a accesskey="u" href="general.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td> 15*7c568831SAndroid Build Coastguard Worker<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td> 16*7c568831SAndroid Build Coastguard Worker<td><a accesskey="n" href="libxml2-xmlregexp.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td> 17*7c568831SAndroid Build Coastguard Worker<th width="100%" align="center">libxml2 Reference Manual</th> 18*7c568831SAndroid Build Coastguard Worker</tr></table> 19*7c568831SAndroid Build Coastguard Worker<h2><span class="refentrytitle">xmlreader</span></h2> 20*7c568831SAndroid Build Coastguard Worker<p>xmlreader - the XMLReader implementation</p> 21*7c568831SAndroid Build Coastguard Worker<p>API of the XML streaming API based on C# interfaces. </p> 22*7c568831SAndroid Build Coastguard Worker<p>Author(s): Daniel Veillard </p> 23*7c568831SAndroid Build Coastguard Worker<div class="refsynopsisdiv"> 24*7c568831SAndroid Build Coastguard Worker<h2>Synopsis</h2> 25*7c568831SAndroid Build Coastguard Worker<pre class="synopsis">typedef enum <a href="#xmlParserProperties">xmlParserProperties</a>; 26*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlParserSeverities">xmlParserSeverities</a>; 27*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlReaderTypes">xmlReaderTypes</a>; 28*7c568831SAndroid Build Coastguard Workertypedef struct _xmlTextReader <a href="#xmlTextReader">xmlTextReader</a>; 29*7c568831SAndroid Build Coastguard Workertypedef void * <a href="#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a>; 30*7c568831SAndroid Build Coastguard Workertypedef enum <a href="#xmlTextReaderMode">xmlTextReaderMode</a>; 31*7c568831SAndroid Build Coastguard Workertypedef <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a> * <a href="#xmlTextReaderPtr">xmlTextReaderPtr</a>; 32*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlFreeTextReader">xmlFreeTextReader</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 33*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlNewTextReader">xmlNewTextReader</a> (<a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br> const char * URI); 34*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlNewTextReaderFilename">xmlNewTextReaderFilename</a> (const char * URI); 35*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderForDoc">xmlReaderForDoc</a> (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * cur, <br> const char * URL, <br> const char * encoding, <br> int options); 36*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderForFd">xmlReaderForFd</a> (int fd, <br> const char * URL, <br> const char * encoding, <br> int options); 37*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderForFile">xmlReaderForFile</a> (const char * filename, <br> const char * encoding, <br> int options); 38*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderForIO">xmlReaderForIO</a> (<a href="libxml2-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread, <br> <a href="libxml2-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose, <br> void * ioctx, <br> const char * URL, <br> const char * encoding, <br> int options); 39*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderForMemory">xmlReaderForMemory</a> (const char * buffer, <br> int size, <br> const char * URL, <br> const char * encoding, <br> int options); 40*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewDoc">xmlReaderNewDoc</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * cur, <br> const char * URL, <br> const char * encoding, <br> int options); 41*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewFd">xmlReaderNewFd</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int fd, <br> const char * URL, <br> const char * encoding, <br> int options); 42*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewFile">xmlReaderNewFile</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * filename, <br> const char * encoding, <br> int options); 43*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewIO">xmlReaderNewIO</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread, <br> <a href="libxml2-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose, <br> void * ioctx, <br> const char * URL, <br> const char * encoding, <br> int options); 44*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewMemory">xmlReaderNewMemory</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * buffer, <br> int size, <br> const char * URL, <br> const char * encoding, <br> int options); 45*7c568831SAndroid Build Coastguard Workerint <a href="#xmlReaderNewWalker">xmlReaderNewWalker</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc); 46*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> <a href="#xmlReaderWalker">xmlReaderWalker</a> (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc); 47*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderAttributeCount">xmlTextReaderAttributeCount</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 48*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderBaseUri">xmlTextReaderBaseUri</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 49*7c568831SAndroid Build Coastguard Workerlong <a href="#xmlTextReaderByteConsumed">xmlTextReaderByteConsumed</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 50*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderClose">xmlTextReaderClose</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 51*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstBaseUri">xmlTextReaderConstBaseUri</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 52*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstEncoding">xmlTextReaderConstEncoding</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 53*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstLocalName">xmlTextReaderConstLocalName</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 54*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstName">xmlTextReaderConstName</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 55*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstNamespaceUri">xmlTextReaderConstNamespaceUri</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 56*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstPrefix">xmlTextReaderConstPrefix</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 57*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstString">xmlTextReaderConstString</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str); 58*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstValue">xmlTextReaderConstValue</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 59*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstXmlLang">xmlTextReaderConstXmlLang</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 60*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderConstXmlVersion">xmlTextReaderConstXmlVersion</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 61*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> <a href="#xmlTextReaderCurrentDoc">xmlTextReaderCurrentDoc</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 62*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="#xmlTextReaderCurrentNode">xmlTextReaderCurrentNode</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 63*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderDepth">xmlTextReaderDepth</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 64*7c568831SAndroid Build Coastguard Workertypedef void <a href="#xmlTextReaderErrorFunc">xmlTextReaderErrorFunc</a> (void * arg, <br> const char * msg, <br> <a href="libxml2-xmlreader.html#xmlParserSeverities">xmlParserSeverities</a> severity, <br> <a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator); 65*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="#xmlTextReaderExpand">xmlTextReaderExpand</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 66*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderGetAttribute">xmlTextReaderGetAttribute</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name); 67*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderGetAttributeNo">xmlTextReaderGetAttributeNo</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int no); 68*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderGetAttributeNs">xmlTextReaderGetAttributeNs</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * localName, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * namespaceURI); 69*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlTextReaderGetErrorHandler">xmlTextReaderGetErrorHandler</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlreader.html#xmlTextReaderErrorFunc">xmlTextReaderErrorFunc</a> * f, <br> void ** arg); 70*7c568831SAndroid Build Coastguard Workerconst <a href="libxml2-xmlerror.html#xmlError">xmlError</a> * <a href="#xmlTextReaderGetLastError">xmlTextReaderGetLastError</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 71*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderGetParserColumnNumber">xmlTextReaderGetParserColumnNumber</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 72*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderGetParserLineNumber">xmlTextReaderGetParserLineNumber</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 73*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderGetParserProp">xmlTextReaderGetParserProp</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int prop); 74*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> <a href="#xmlTextReaderGetRemainder">xmlTextReaderGetRemainder</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 75*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderHasAttributes">xmlTextReaderHasAttributes</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 76*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderHasValue">xmlTextReaderHasValue</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 77*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderIsDefault">xmlTextReaderIsDefault</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 78*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderIsEmptyElement">xmlTextReaderIsEmptyElement</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 79*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderIsNamespaceDecl">xmlTextReaderIsNamespaceDecl</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 80*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderIsValid">xmlTextReaderIsValid</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 81*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderLocalName">xmlTextReaderLocalName</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 82*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderLocatorBaseURI">xmlTextReaderLocatorBaseURI</a> (<a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator); 83*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderLocatorLineNumber">xmlTextReaderLocatorLineNumber</a> (<a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator); 84*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderLookupNamespace">xmlTextReaderLookupNamespace</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * prefix); 85*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToAttribute">xmlTextReaderMoveToAttribute</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name); 86*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToAttributeNo">xmlTextReaderMoveToAttributeNo</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int no); 87*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToAttributeNs">xmlTextReaderMoveToAttributeNs</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * localName, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * namespaceURI); 88*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToElement">xmlTextReaderMoveToElement</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 89*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToFirstAttribute">xmlTextReaderMoveToFirstAttribute</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 90*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderMoveToNextAttribute">xmlTextReaderMoveToNextAttribute</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 91*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderName">xmlTextReaderName</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 92*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderNamespaceUri">xmlTextReaderNamespaceUri</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 93*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderNext">xmlTextReaderNext</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 94*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderNextSibling">xmlTextReaderNextSibling</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 95*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderNodeType">xmlTextReaderNodeType</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 96*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderNormalization">xmlTextReaderNormalization</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 97*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderPrefix">xmlTextReaderPrefix</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 98*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="#xmlTextReaderPreserve">xmlTextReaderPreserve</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 99*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderPreservePattern">xmlTextReaderPreservePattern</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces); 100*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderQuoteChar">xmlTextReaderQuoteChar</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 101*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderRead">xmlTextReaderRead</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 102*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderReadAttributeValue">xmlTextReaderReadAttributeValue</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 103*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderReadInnerXml">xmlTextReaderReadInnerXml</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 104*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderReadOuterXml">xmlTextReaderReadOuterXml</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 105*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderReadState">xmlTextReaderReadState</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 106*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderReadString">xmlTextReaderReadString</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 107*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderRelaxNGSetSchema">xmlTextReaderRelaxNGSetSchema</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-relaxng.html#xmlRelaxNGPtr">xmlRelaxNGPtr</a> schema); 108*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderRelaxNGValidate">xmlTextReaderRelaxNGValidate</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * rng); 109*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderRelaxNGValidateCtxt">xmlTextReaderRelaxNGValidateCtxt</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-relaxng.html#xmlRelaxNGValidCtxtPtr">xmlRelaxNGValidCtxtPtr</a> ctxt, <br> int options); 110*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderSchemaValidate">xmlTextReaderSchemaValidate</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * xsd); 111*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderSchemaValidateCtxt">xmlTextReaderSchemaValidateCtxt</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br> int options); 112*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlTextReaderSetErrorHandler">xmlTextReaderSetErrorHandler</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlreader.html#xmlTextReaderErrorFunc">xmlTextReaderErrorFunc</a> f, <br> void * arg); 113*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlTextReaderSetMaxAmplification">xmlTextReaderSetMaxAmplification</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> unsigned maxAmpl); 114*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderSetParserProp">xmlTextReaderSetParserProp</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int prop, <br> int value); 115*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderSetSchema">xmlTextReaderSetSchema</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema); 116*7c568831SAndroid Build Coastguard Workervoid <a href="#xmlTextReaderSetStructuredErrorHandler">xmlTextReaderSetStructuredErrorHandler</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> f, <br> void * arg); 117*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderSetup">xmlTextReaderSetup</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br> const char * URL, <br> const char * encoding, <br> int options); 118*7c568831SAndroid Build Coastguard Workerint <a href="#xmlTextReaderStandalone">xmlTextReaderStandalone</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 119*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderValue">xmlTextReaderValue</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 120*7c568831SAndroid Build Coastguard Worker<a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * <a href="#xmlTextReaderXmlLang">xmlTextReaderXmlLang</a> (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader); 121*7c568831SAndroid Build Coastguard Worker</pre> 122*7c568831SAndroid Build Coastguard Worker</div> 123*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"><h2>Description</h2></div> 124*7c568831SAndroid Build Coastguard Worker<div class="refsect1" lang="en"> 125*7c568831SAndroid Build Coastguard Worker<h2>Details</h2> 126*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 127*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 128*7c568831SAndroid Build Coastguard Worker<h3> 129*7c568831SAndroid Build Coastguard Worker<a name="xmlParserProperties">Enum </a>xmlParserProperties</h3> 130*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlParserProperties">xmlParserProperties</a> { 131*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_LOADDTD">XML_PARSER_LOADDTD</a> = 1 132*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_DEFAULTATTRS">XML_PARSER_DEFAULTATTRS</a> = 2 133*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_VALIDATE">XML_PARSER_VALIDATE</a> = 3 134*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_SUBST_ENTITIES">XML_PARSER_SUBST_ENTITIES</a> = 4 135*7c568831SAndroid Build Coastguard Worker}; 136*7c568831SAndroid Build Coastguard Worker</pre> 137*7c568831SAndroid Build Coastguard Worker<p></p> 138*7c568831SAndroid Build Coastguard Worker</div> 139*7c568831SAndroid Build Coastguard Worker<hr> 140*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 141*7c568831SAndroid Build Coastguard Worker<h3> 142*7c568831SAndroid Build Coastguard Worker<a name="xmlParserSeverities">Enum </a>xmlParserSeverities</h3> 143*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlParserSeverities">xmlParserSeverities</a> { 144*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_SEVERITY_VALIDITY_WARNING">XML_PARSER_SEVERITY_VALIDITY_WARNING</a> = 1 145*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_SEVERITY_VALIDITY_ERROR">XML_PARSER_SEVERITY_VALIDITY_ERROR</a> = 2 146*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_SEVERITY_WARNING">XML_PARSER_SEVERITY_WARNING</a> = 3 147*7c568831SAndroid Build Coastguard Worker <a name="XML_PARSER_SEVERITY_ERROR">XML_PARSER_SEVERITY_ERROR</a> = 4 148*7c568831SAndroid Build Coastguard Worker}; 149*7c568831SAndroid Build Coastguard Worker</pre> 150*7c568831SAndroid Build Coastguard Worker<p></p> 151*7c568831SAndroid Build Coastguard Worker</div> 152*7c568831SAndroid Build Coastguard Worker<hr> 153*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 154*7c568831SAndroid Build Coastguard Worker<h3> 155*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderTypes">Enum </a>xmlReaderTypes</h3> 156*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlReaderTypes">xmlReaderTypes</a> { 157*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_NONE">XML_READER_TYPE_NONE</a> = 0 158*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_ELEMENT">XML_READER_TYPE_ELEMENT</a> = 1 159*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_ATTRIBUTE">XML_READER_TYPE_ATTRIBUTE</a> = 2 160*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_TEXT">XML_READER_TYPE_TEXT</a> = 3 161*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_CDATA">XML_READER_TYPE_CDATA</a> = 4 162*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_ENTITY_REFERENCE">XML_READER_TYPE_ENTITY_REFERENCE</a> = 5 163*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_ENTITY">XML_READER_TYPE_ENTITY</a> = 6 164*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_PROCESSING_INSTRUCTION">XML_READER_TYPE_PROCESSING_INSTRUCTION</a> = 7 165*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_COMMENT">XML_READER_TYPE_COMMENT</a> = 8 166*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_DOCUMENT">XML_READER_TYPE_DOCUMENT</a> = 9 167*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_DOCUMENT_TYPE">XML_READER_TYPE_DOCUMENT_TYPE</a> = 10 168*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_DOCUMENT_FRAGMENT">XML_READER_TYPE_DOCUMENT_FRAGMENT</a> = 11 169*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_NOTATION">XML_READER_TYPE_NOTATION</a> = 12 170*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_WHITESPACE">XML_READER_TYPE_WHITESPACE</a> = 13 171*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_SIGNIFICANT_WHITESPACE">XML_READER_TYPE_SIGNIFICANT_WHITESPACE</a> = 14 172*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_END_ELEMENT">XML_READER_TYPE_END_ELEMENT</a> = 15 173*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_END_ENTITY">XML_READER_TYPE_END_ENTITY</a> = 16 174*7c568831SAndroid Build Coastguard Worker <a name="XML_READER_TYPE_XML_DECLARATION">XML_READER_TYPE_XML_DECLARATION</a> = 17 175*7c568831SAndroid Build Coastguard Worker}; 176*7c568831SAndroid Build Coastguard Worker</pre> 177*7c568831SAndroid Build Coastguard Worker<p></p> 178*7c568831SAndroid Build Coastguard Worker</div> 179*7c568831SAndroid Build Coastguard Worker<hr> 180*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 181*7c568831SAndroid Build Coastguard Worker<h3> 182*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReader">Structure </a>xmlTextReader</h3> 183*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">struct _xmlTextReader { 184*7c568831SAndroid Build Coastguard WorkerThe content of this structure is not made public by the API. 185*7c568831SAndroid Build Coastguard Worker} xmlTextReader; 186*7c568831SAndroid Build Coastguard Worker</pre> 187*7c568831SAndroid Build Coastguard Worker<p></p> 188*7c568831SAndroid Build Coastguard Worker</div> 189*7c568831SAndroid Build Coastguard Worker<hr> 190*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 191*7c568831SAndroid Build Coastguard Worker<h3> 192*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderLocatorPtr">Typedef </a>xmlTextReaderLocatorPtr</h3> 193*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void * xmlTextReaderLocatorPtr; 194*7c568831SAndroid Build Coastguard Worker</pre> 195*7c568831SAndroid Build Coastguard Worker<p></p> 196*7c568831SAndroid Build Coastguard Worker</div> 197*7c568831SAndroid Build Coastguard Worker<hr> 198*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 199*7c568831SAndroid Build Coastguard Worker<h3> 200*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMode">Enum </a>xmlTextReaderMode</h3> 201*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">enum <a href="#xmlTextReaderMode">xmlTextReaderMode</a> { 202*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_INITIAL">XML_TEXTREADER_MODE_INITIAL</a> = 0 203*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_INTERACTIVE">XML_TEXTREADER_MODE_INTERACTIVE</a> = 1 204*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_ERROR">XML_TEXTREADER_MODE_ERROR</a> = 2 205*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_EOF">XML_TEXTREADER_MODE_EOF</a> = 3 206*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_CLOSED">XML_TEXTREADER_MODE_CLOSED</a> = 4 207*7c568831SAndroid Build Coastguard Worker <a name="XML_TEXTREADER_MODE_READING">XML_TEXTREADER_MODE_READING</a> = 5 208*7c568831SAndroid Build Coastguard Worker}; 209*7c568831SAndroid Build Coastguard Worker</pre> 210*7c568831SAndroid Build Coastguard Worker<p></p> 211*7c568831SAndroid Build Coastguard Worker</div> 212*7c568831SAndroid Build Coastguard Worker<hr> 213*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 214*7c568831SAndroid Build Coastguard Worker<h3> 215*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderPtr">Typedef </a>xmlTextReaderPtr</h3> 216*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a> * xmlTextReaderPtr; 217*7c568831SAndroid Build Coastguard Worker</pre> 218*7c568831SAndroid Build Coastguard Worker<p>Pointer to an xmlReader context.</p> 219*7c568831SAndroid Build Coastguard Worker</div> 220*7c568831SAndroid Build Coastguard Worker<hr> 221*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 222*7c568831SAndroid Build Coastguard Worker<h3> 223*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderErrorFunc"></a>Function type xmlTextReaderErrorFunc</h3> 224*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlTextReaderErrorFunc (void * arg, <br> const char * msg, <br> <a href="libxml2-xmlreader.html#xmlParserSeverities">xmlParserSeverities</a> severity, <br> <a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator)<br> 225*7c568831SAndroid Build Coastguard Worker</pre> 226*7c568831SAndroid Build Coastguard Worker<p>Signature of an error callback from a reader parser</p> 227*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 228*7c568831SAndroid Build Coastguard Worker<col align="left"> 229*7c568831SAndroid Build Coastguard Worker<tbody> 230*7c568831SAndroid Build Coastguard Worker<tr> 231*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>arg</tt></i>:</span></td> 232*7c568831SAndroid Build Coastguard Worker<td>the user argument</td> 233*7c568831SAndroid Build Coastguard Worker</tr> 234*7c568831SAndroid Build Coastguard Worker<tr> 235*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>msg</tt></i>:</span></td> 236*7c568831SAndroid Build Coastguard Worker<td>the message</td> 237*7c568831SAndroid Build Coastguard Worker</tr> 238*7c568831SAndroid Build Coastguard Worker<tr> 239*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>severity</tt></i>:</span></td> 240*7c568831SAndroid Build Coastguard Worker<td>the severity of the error</td> 241*7c568831SAndroid Build Coastguard Worker</tr> 242*7c568831SAndroid Build Coastguard Worker<tr> 243*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>locator</tt></i>:</span></td> 244*7c568831SAndroid Build Coastguard Worker<td>a locator indicating where the error occurred</td> 245*7c568831SAndroid Build Coastguard Worker</tr> 246*7c568831SAndroid Build Coastguard Worker</tbody> 247*7c568831SAndroid Build Coastguard Worker</table></div> 248*7c568831SAndroid Build Coastguard Worker</div> 249*7c568831SAndroid Build Coastguard Worker<hr> 250*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 251*7c568831SAndroid Build Coastguard Worker<h3> 252*7c568831SAndroid Build Coastguard Worker<a name="xmlFreeTextReader"></a>xmlFreeTextReader ()</h3> 253*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlFreeTextReader (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 254*7c568831SAndroid Build Coastguard Worker</pre> 255*7c568831SAndroid Build Coastguard Worker<p>Deallocate all the resources associated to the reader</p> 256*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 257*7c568831SAndroid Build Coastguard Worker<col align="left"> 258*7c568831SAndroid Build Coastguard Worker<tbody><tr> 259*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 260*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> 261*7c568831SAndroid Build Coastguard Worker</td> 262*7c568831SAndroid Build Coastguard Worker</tr></tbody> 263*7c568831SAndroid Build Coastguard Worker</table></div> 264*7c568831SAndroid Build Coastguard Worker</div> 265*7c568831SAndroid Build Coastguard Worker<hr> 266*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 267*7c568831SAndroid Build Coastguard Worker<h3> 268*7c568831SAndroid Build Coastguard Worker<a name="xmlNewTextReader"></a>xmlNewTextReader ()</h3> 269*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlNewTextReader (<a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br> const char * URI)<br> 270*7c568831SAndroid Build Coastguard Worker</pre> 271*7c568831SAndroid Build Coastguard Worker<p>Create an <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a> structure fed with @input</p> 272*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 273*7c568831SAndroid Build Coastguard Worker<col align="left"> 274*7c568831SAndroid Build Coastguard Worker<tbody> 275*7c568831SAndroid Build Coastguard Worker<tr> 276*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>input</tt></i>:</span></td> 277*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> used to read data</td> 278*7c568831SAndroid Build Coastguard Worker</tr> 279*7c568831SAndroid Build Coastguard Worker<tr> 280*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URI</tt></i>:</span></td> 281*7c568831SAndroid Build Coastguard Worker<td>the URI information for the source if available</td> 282*7c568831SAndroid Build Coastguard Worker</tr> 283*7c568831SAndroid Build Coastguard Worker<tr> 284*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 285*7c568831SAndroid Build Coastguard Worker<td>the new <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> or NULL in case of error</td> 286*7c568831SAndroid Build Coastguard Worker</tr> 287*7c568831SAndroid Build Coastguard Worker</tbody> 288*7c568831SAndroid Build Coastguard Worker</table></div> 289*7c568831SAndroid Build Coastguard Worker</div> 290*7c568831SAndroid Build Coastguard Worker<hr> 291*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 292*7c568831SAndroid Build Coastguard Worker<h3> 293*7c568831SAndroid Build Coastguard Worker<a name="xmlNewTextReaderFilename"></a>xmlNewTextReaderFilename ()</h3> 294*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlNewTextReaderFilename (const char * URI)<br> 295*7c568831SAndroid Build Coastguard Worker</pre> 296*7c568831SAndroid Build Coastguard Worker<p>Create an <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a> structure fed with the resource at @URI</p> 297*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 298*7c568831SAndroid Build Coastguard Worker<col align="left"> 299*7c568831SAndroid Build Coastguard Worker<tbody> 300*7c568831SAndroid Build Coastguard Worker<tr> 301*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URI</tt></i>:</span></td> 302*7c568831SAndroid Build Coastguard Worker<td>the URI of the resource to process</td> 303*7c568831SAndroid Build Coastguard Worker</tr> 304*7c568831SAndroid Build Coastguard Worker<tr> 305*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 306*7c568831SAndroid Build Coastguard Worker<td>the new <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> or NULL in case of error</td> 307*7c568831SAndroid Build Coastguard Worker</tr> 308*7c568831SAndroid Build Coastguard Worker</tbody> 309*7c568831SAndroid Build Coastguard Worker</table></div> 310*7c568831SAndroid Build Coastguard Worker</div> 311*7c568831SAndroid Build Coastguard Worker<hr> 312*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 313*7c568831SAndroid Build Coastguard Worker<h3> 314*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderForDoc"></a>xmlReaderForDoc ()</h3> 315*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderForDoc (const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * cur, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 316*7c568831SAndroid Build Coastguard Worker</pre> 317*7c568831SAndroid Build Coastguard Worker<p>Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>.</p> 318*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 319*7c568831SAndroid Build Coastguard Worker<col align="left"> 320*7c568831SAndroid Build Coastguard Worker<tbody> 321*7c568831SAndroid Build Coastguard Worker<tr> 322*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>cur</tt></i>:</span></td> 323*7c568831SAndroid Build Coastguard Worker<td>a pointer to a zero terminated string</td> 324*7c568831SAndroid Build Coastguard Worker</tr> 325*7c568831SAndroid Build Coastguard Worker<tr> 326*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 327*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 328*7c568831SAndroid Build Coastguard Worker</tr> 329*7c568831SAndroid Build Coastguard Worker<tr> 330*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 331*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 332*7c568831SAndroid Build Coastguard Worker</tr> 333*7c568831SAndroid Build Coastguard Worker<tr> 334*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 335*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 336*7c568831SAndroid Build Coastguard Worker</td> 337*7c568831SAndroid Build Coastguard Worker</tr> 338*7c568831SAndroid Build Coastguard Worker<tr> 339*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 340*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 341*7c568831SAndroid Build Coastguard Worker</tr> 342*7c568831SAndroid Build Coastguard Worker</tbody> 343*7c568831SAndroid Build Coastguard Worker</table></div> 344*7c568831SAndroid Build Coastguard Worker</div> 345*7c568831SAndroid Build Coastguard Worker<hr> 346*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 347*7c568831SAndroid Build Coastguard Worker<h3> 348*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderForFd"></a>xmlReaderForFd ()</h3> 349*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderForFd (int fd, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 350*7c568831SAndroid Build Coastguard Worker</pre> 351*7c568831SAndroid Build Coastguard Worker<p>Create an xmltextReader for an XML from a file descriptor. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. NOTE that the file descriptor will not be closed when the reader is closed or reset.</p> 352*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 353*7c568831SAndroid Build Coastguard Worker<col align="left"> 354*7c568831SAndroid Build Coastguard Worker<tbody> 355*7c568831SAndroid Build Coastguard Worker<tr> 356*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>fd</tt></i>:</span></td> 357*7c568831SAndroid Build Coastguard Worker<td>an open file descriptor</td> 358*7c568831SAndroid Build Coastguard Worker</tr> 359*7c568831SAndroid Build Coastguard Worker<tr> 360*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 361*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 362*7c568831SAndroid Build Coastguard Worker</tr> 363*7c568831SAndroid Build Coastguard Worker<tr> 364*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 365*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 366*7c568831SAndroid Build Coastguard Worker</tr> 367*7c568831SAndroid Build Coastguard Worker<tr> 368*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 369*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 370*7c568831SAndroid Build Coastguard Worker</td> 371*7c568831SAndroid Build Coastguard Worker</tr> 372*7c568831SAndroid Build Coastguard Worker<tr> 373*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 374*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 375*7c568831SAndroid Build Coastguard Worker</tr> 376*7c568831SAndroid Build Coastguard Worker</tbody> 377*7c568831SAndroid Build Coastguard Worker</table></div> 378*7c568831SAndroid Build Coastguard Worker</div> 379*7c568831SAndroid Build Coastguard Worker<hr> 380*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 381*7c568831SAndroid Build Coastguard Worker<h3> 382*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderForFile"></a>xmlReaderForFile ()</h3> 383*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderForFile (const char * filename, <br> const char * encoding, <br> int options)<br> 384*7c568831SAndroid Build Coastguard Worker</pre> 385*7c568831SAndroid Build Coastguard Worker<p>parse an XML file from the filesystem or the network. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>.</p> 386*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 387*7c568831SAndroid Build Coastguard Worker<col align="left"> 388*7c568831SAndroid Build Coastguard Worker<tbody> 389*7c568831SAndroid Build Coastguard Worker<tr> 390*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>filename</tt></i>:</span></td> 391*7c568831SAndroid Build Coastguard Worker<td>a file or URL</td> 392*7c568831SAndroid Build Coastguard Worker</tr> 393*7c568831SAndroid Build Coastguard Worker<tr> 394*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 395*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 396*7c568831SAndroid Build Coastguard Worker</tr> 397*7c568831SAndroid Build Coastguard Worker<tr> 398*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 399*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 400*7c568831SAndroid Build Coastguard Worker</td> 401*7c568831SAndroid Build Coastguard Worker</tr> 402*7c568831SAndroid Build Coastguard Worker<tr> 403*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 404*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 405*7c568831SAndroid Build Coastguard Worker</tr> 406*7c568831SAndroid Build Coastguard Worker</tbody> 407*7c568831SAndroid Build Coastguard Worker</table></div> 408*7c568831SAndroid Build Coastguard Worker</div> 409*7c568831SAndroid Build Coastguard Worker<hr> 410*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 411*7c568831SAndroid Build Coastguard Worker<h3> 412*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderForIO"></a>xmlReaderForIO ()</h3> 413*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderForIO (<a href="libxml2-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread, <br> <a href="libxml2-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose, <br> void * ioctx, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 414*7c568831SAndroid Build Coastguard Worker</pre> 415*7c568831SAndroid Build Coastguard Worker<p>Create an xmltextReader for an XML document from I/O functions and source. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>.</p> 416*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 417*7c568831SAndroid Build Coastguard Worker<col align="left"> 418*7c568831SAndroid Build Coastguard Worker<tbody> 419*7c568831SAndroid Build Coastguard Worker<tr> 420*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioread</tt></i>:</span></td> 421*7c568831SAndroid Build Coastguard Worker<td>an I/O read function</td> 422*7c568831SAndroid Build Coastguard Worker</tr> 423*7c568831SAndroid Build Coastguard Worker<tr> 424*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioclose</tt></i>:</span></td> 425*7c568831SAndroid Build Coastguard Worker<td>an I/O close function</td> 426*7c568831SAndroid Build Coastguard Worker</tr> 427*7c568831SAndroid Build Coastguard Worker<tr> 428*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioctx</tt></i>:</span></td> 429*7c568831SAndroid Build Coastguard Worker<td>an I/O handler</td> 430*7c568831SAndroid Build Coastguard Worker</tr> 431*7c568831SAndroid Build Coastguard Worker<tr> 432*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 433*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 434*7c568831SAndroid Build Coastguard Worker</tr> 435*7c568831SAndroid Build Coastguard Worker<tr> 436*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 437*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 438*7c568831SAndroid Build Coastguard Worker</tr> 439*7c568831SAndroid Build Coastguard Worker<tr> 440*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 441*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 442*7c568831SAndroid Build Coastguard Worker</td> 443*7c568831SAndroid Build Coastguard Worker</tr> 444*7c568831SAndroid Build Coastguard Worker<tr> 445*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 446*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 447*7c568831SAndroid Build Coastguard Worker</tr> 448*7c568831SAndroid Build Coastguard Worker</tbody> 449*7c568831SAndroid Build Coastguard Worker</table></div> 450*7c568831SAndroid Build Coastguard Worker</div> 451*7c568831SAndroid Build Coastguard Worker<hr> 452*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 453*7c568831SAndroid Build Coastguard Worker<h3> 454*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderForMemory"></a>xmlReaderForMemory ()</h3> 455*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderForMemory (const char * buffer, <br> int size, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 456*7c568831SAndroid Build Coastguard Worker</pre> 457*7c568831SAndroid Build Coastguard Worker<p>Create an xmltextReader for an XML in-memory document. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>.</p> 458*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 459*7c568831SAndroid Build Coastguard Worker<col align="left"> 460*7c568831SAndroid Build Coastguard Worker<tbody> 461*7c568831SAndroid Build Coastguard Worker<tr> 462*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>buffer</tt></i>:</span></td> 463*7c568831SAndroid Build Coastguard Worker<td>a pointer to a char array</td> 464*7c568831SAndroid Build Coastguard Worker</tr> 465*7c568831SAndroid Build Coastguard Worker<tr> 466*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>size</tt></i>:</span></td> 467*7c568831SAndroid Build Coastguard Worker<td>the size of the array</td> 468*7c568831SAndroid Build Coastguard Worker</tr> 469*7c568831SAndroid Build Coastguard Worker<tr> 470*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 471*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 472*7c568831SAndroid Build Coastguard Worker</tr> 473*7c568831SAndroid Build Coastguard Worker<tr> 474*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 475*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 476*7c568831SAndroid Build Coastguard Worker</tr> 477*7c568831SAndroid Build Coastguard Worker<tr> 478*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 479*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 480*7c568831SAndroid Build Coastguard Worker</td> 481*7c568831SAndroid Build Coastguard Worker</tr> 482*7c568831SAndroid Build Coastguard Worker<tr> 483*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 484*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 485*7c568831SAndroid Build Coastguard Worker</tr> 486*7c568831SAndroid Build Coastguard Worker</tbody> 487*7c568831SAndroid Build Coastguard Worker</table></div> 488*7c568831SAndroid Build Coastguard Worker</div> 489*7c568831SAndroid Build Coastguard Worker<hr> 490*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 491*7c568831SAndroid Build Coastguard Worker<h3> 492*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewDoc"></a>xmlReaderNewDoc ()</h3> 493*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewDoc (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * cur, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 494*7c568831SAndroid Build Coastguard Worker</pre> 495*7c568831SAndroid Build Coastguard Worker<p>Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 496*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 497*7c568831SAndroid Build Coastguard Worker<col align="left"> 498*7c568831SAndroid Build Coastguard Worker<tbody> 499*7c568831SAndroid Build Coastguard Worker<tr> 500*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 501*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 502*7c568831SAndroid Build Coastguard Worker</tr> 503*7c568831SAndroid Build Coastguard Worker<tr> 504*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>cur</tt></i>:</span></td> 505*7c568831SAndroid Build Coastguard Worker<td>a pointer to a zero terminated string</td> 506*7c568831SAndroid Build Coastguard Worker</tr> 507*7c568831SAndroid Build Coastguard Worker<tr> 508*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 509*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 510*7c568831SAndroid Build Coastguard Worker</tr> 511*7c568831SAndroid Build Coastguard Worker<tr> 512*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 513*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 514*7c568831SAndroid Build Coastguard Worker</tr> 515*7c568831SAndroid Build Coastguard Worker<tr> 516*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 517*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 518*7c568831SAndroid Build Coastguard Worker</td> 519*7c568831SAndroid Build Coastguard Worker</tr> 520*7c568831SAndroid Build Coastguard Worker<tr> 521*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 522*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 523*7c568831SAndroid Build Coastguard Worker</tr> 524*7c568831SAndroid Build Coastguard Worker</tbody> 525*7c568831SAndroid Build Coastguard Worker</table></div> 526*7c568831SAndroid Build Coastguard Worker</div> 527*7c568831SAndroid Build Coastguard Worker<hr> 528*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 529*7c568831SAndroid Build Coastguard Worker<h3> 530*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewFd"></a>xmlReaderNewFd ()</h3> 531*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewFd (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int fd, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 532*7c568831SAndroid Build Coastguard Worker</pre> 533*7c568831SAndroid Build Coastguard Worker<p>Setup an xmltextReader to parse an XML from a file descriptor. NOTE that the file descriptor will not be closed when the reader is closed or reset. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 534*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 535*7c568831SAndroid Build Coastguard Worker<col align="left"> 536*7c568831SAndroid Build Coastguard Worker<tbody> 537*7c568831SAndroid Build Coastguard Worker<tr> 538*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 539*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 540*7c568831SAndroid Build Coastguard Worker</tr> 541*7c568831SAndroid Build Coastguard Worker<tr> 542*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>fd</tt></i>:</span></td> 543*7c568831SAndroid Build Coastguard Worker<td>an open file descriptor</td> 544*7c568831SAndroid Build Coastguard Worker</tr> 545*7c568831SAndroid Build Coastguard Worker<tr> 546*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 547*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 548*7c568831SAndroid Build Coastguard Worker</tr> 549*7c568831SAndroid Build Coastguard Worker<tr> 550*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 551*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 552*7c568831SAndroid Build Coastguard Worker</tr> 553*7c568831SAndroid Build Coastguard Worker<tr> 554*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 555*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 556*7c568831SAndroid Build Coastguard Worker</td> 557*7c568831SAndroid Build Coastguard Worker</tr> 558*7c568831SAndroid Build Coastguard Worker<tr> 559*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 560*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 561*7c568831SAndroid Build Coastguard Worker</tr> 562*7c568831SAndroid Build Coastguard Worker</tbody> 563*7c568831SAndroid Build Coastguard Worker</table></div> 564*7c568831SAndroid Build Coastguard Worker</div> 565*7c568831SAndroid Build Coastguard Worker<hr> 566*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 567*7c568831SAndroid Build Coastguard Worker<h3> 568*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewFile"></a>xmlReaderNewFile ()</h3> 569*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewFile (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * filename, <br> const char * encoding, <br> int options)<br> 570*7c568831SAndroid Build Coastguard Worker</pre> 571*7c568831SAndroid Build Coastguard Worker<p>parse an XML file from the filesystem or the network. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 572*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 573*7c568831SAndroid Build Coastguard Worker<col align="left"> 574*7c568831SAndroid Build Coastguard Worker<tbody> 575*7c568831SAndroid Build Coastguard Worker<tr> 576*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 577*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 578*7c568831SAndroid Build Coastguard Worker</tr> 579*7c568831SAndroid Build Coastguard Worker<tr> 580*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>filename</tt></i>:</span></td> 581*7c568831SAndroid Build Coastguard Worker<td>a file or URL</td> 582*7c568831SAndroid Build Coastguard Worker</tr> 583*7c568831SAndroid Build Coastguard Worker<tr> 584*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 585*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 586*7c568831SAndroid Build Coastguard Worker</tr> 587*7c568831SAndroid Build Coastguard Worker<tr> 588*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 589*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 590*7c568831SAndroid Build Coastguard Worker</td> 591*7c568831SAndroid Build Coastguard Worker</tr> 592*7c568831SAndroid Build Coastguard Worker<tr> 593*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 594*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 595*7c568831SAndroid Build Coastguard Worker</tr> 596*7c568831SAndroid Build Coastguard Worker</tbody> 597*7c568831SAndroid Build Coastguard Worker</table></div> 598*7c568831SAndroid Build Coastguard Worker</div> 599*7c568831SAndroid Build Coastguard Worker<hr> 600*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 601*7c568831SAndroid Build Coastguard Worker<h3> 602*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewIO"></a>xmlReaderNewIO ()</h3> 603*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewIO (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlIO.html#xmlInputReadCallback">xmlInputReadCallback</a> ioread, <br> <a href="libxml2-xmlIO.html#xmlInputCloseCallback">xmlInputCloseCallback</a> ioclose, <br> void * ioctx, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 604*7c568831SAndroid Build Coastguard Worker</pre> 605*7c568831SAndroid Build Coastguard Worker<p>Setup an xmltextReader to parse an XML document from I/O functions and source. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 606*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 607*7c568831SAndroid Build Coastguard Worker<col align="left"> 608*7c568831SAndroid Build Coastguard Worker<tbody> 609*7c568831SAndroid Build Coastguard Worker<tr> 610*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 611*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 612*7c568831SAndroid Build Coastguard Worker</tr> 613*7c568831SAndroid Build Coastguard Worker<tr> 614*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioread</tt></i>:</span></td> 615*7c568831SAndroid Build Coastguard Worker<td>an I/O read function</td> 616*7c568831SAndroid Build Coastguard Worker</tr> 617*7c568831SAndroid Build Coastguard Worker<tr> 618*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioclose</tt></i>:</span></td> 619*7c568831SAndroid Build Coastguard Worker<td>an I/O close function</td> 620*7c568831SAndroid Build Coastguard Worker</tr> 621*7c568831SAndroid Build Coastguard Worker<tr> 622*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ioctx</tt></i>:</span></td> 623*7c568831SAndroid Build Coastguard Worker<td>an I/O handler</td> 624*7c568831SAndroid Build Coastguard Worker</tr> 625*7c568831SAndroid Build Coastguard Worker<tr> 626*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 627*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 628*7c568831SAndroid Build Coastguard Worker</tr> 629*7c568831SAndroid Build Coastguard Worker<tr> 630*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 631*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 632*7c568831SAndroid Build Coastguard Worker</tr> 633*7c568831SAndroid Build Coastguard Worker<tr> 634*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 635*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 636*7c568831SAndroid Build Coastguard Worker</td> 637*7c568831SAndroid Build Coastguard Worker</tr> 638*7c568831SAndroid Build Coastguard Worker<tr> 639*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 640*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 641*7c568831SAndroid Build Coastguard Worker</tr> 642*7c568831SAndroid Build Coastguard Worker</tbody> 643*7c568831SAndroid Build Coastguard Worker</table></div> 644*7c568831SAndroid Build Coastguard Worker</div> 645*7c568831SAndroid Build Coastguard Worker<hr> 646*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 647*7c568831SAndroid Build Coastguard Worker<h3> 648*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewMemory"></a>xmlReaderNewMemory ()</h3> 649*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewMemory (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * buffer, <br> int size, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 650*7c568831SAndroid Build Coastguard Worker</pre> 651*7c568831SAndroid Build Coastguard Worker<p>Setup an xmltextReader to parse an XML in-memory document. The parsing flags @options are a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a>. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 652*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 653*7c568831SAndroid Build Coastguard Worker<col align="left"> 654*7c568831SAndroid Build Coastguard Worker<tbody> 655*7c568831SAndroid Build Coastguard Worker<tr> 656*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 657*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 658*7c568831SAndroid Build Coastguard Worker</tr> 659*7c568831SAndroid Build Coastguard Worker<tr> 660*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>buffer</tt></i>:</span></td> 661*7c568831SAndroid Build Coastguard Worker<td>a pointer to a char array</td> 662*7c568831SAndroid Build Coastguard Worker</tr> 663*7c568831SAndroid Build Coastguard Worker<tr> 664*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>size</tt></i>:</span></td> 665*7c568831SAndroid Build Coastguard Worker<td>the size of the array</td> 666*7c568831SAndroid Build Coastguard Worker</tr> 667*7c568831SAndroid Build Coastguard Worker<tr> 668*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 669*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 670*7c568831SAndroid Build Coastguard Worker</tr> 671*7c568831SAndroid Build Coastguard Worker<tr> 672*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 673*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 674*7c568831SAndroid Build Coastguard Worker</tr> 675*7c568831SAndroid Build Coastguard Worker<tr> 676*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 677*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 678*7c568831SAndroid Build Coastguard Worker</td> 679*7c568831SAndroid Build Coastguard Worker</tr> 680*7c568831SAndroid Build Coastguard Worker<tr> 681*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 682*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 683*7c568831SAndroid Build Coastguard Worker</tr> 684*7c568831SAndroid Build Coastguard Worker</tbody> 685*7c568831SAndroid Build Coastguard Worker</table></div> 686*7c568831SAndroid Build Coastguard Worker</div> 687*7c568831SAndroid Build Coastguard Worker<hr> 688*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 689*7c568831SAndroid Build Coastguard Worker<h3> 690*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderNewWalker"></a>xmlReaderNewWalker ()</h3> 691*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlReaderNewWalker (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br> 692*7c568831SAndroid Build Coastguard Worker</pre> 693*7c568831SAndroid Build Coastguard Worker<p>Setup an xmltextReader to parse a preparsed XML document. This reuses the existing @reader <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>.</p> 694*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 695*7c568831SAndroid Build Coastguard Worker<col align="left"> 696*7c568831SAndroid Build Coastguard Worker<tbody> 697*7c568831SAndroid Build Coastguard Worker<tr> 698*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 699*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 700*7c568831SAndroid Build Coastguard Worker</tr> 701*7c568831SAndroid Build Coastguard Worker<tr> 702*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td> 703*7c568831SAndroid Build Coastguard Worker<td>a preparsed document</td> 704*7c568831SAndroid Build Coastguard Worker</tr> 705*7c568831SAndroid Build Coastguard Worker<tr> 706*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 707*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error</td> 708*7c568831SAndroid Build Coastguard Worker</tr> 709*7c568831SAndroid Build Coastguard Worker</tbody> 710*7c568831SAndroid Build Coastguard Worker</table></div> 711*7c568831SAndroid Build Coastguard Worker</div> 712*7c568831SAndroid Build Coastguard Worker<hr> 713*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 714*7c568831SAndroid Build Coastguard Worker<h3> 715*7c568831SAndroid Build Coastguard Worker<a name="xmlReaderWalker"></a>xmlReaderWalker ()</h3> 716*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> xmlReaderWalker (<a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> doc)<br> 717*7c568831SAndroid Build Coastguard Worker</pre> 718*7c568831SAndroid Build Coastguard Worker<p>Create an xmltextReader for a preparsed document.</p> 719*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 720*7c568831SAndroid Build Coastguard Worker<col align="left"> 721*7c568831SAndroid Build Coastguard Worker<tbody> 722*7c568831SAndroid Build Coastguard Worker<tr> 723*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>doc</tt></i>:</span></td> 724*7c568831SAndroid Build Coastguard Worker<td>a preparsed document</td> 725*7c568831SAndroid Build Coastguard Worker</tr> 726*7c568831SAndroid Build Coastguard Worker<tr> 727*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 728*7c568831SAndroid Build Coastguard Worker<td>the new reader or NULL in case of error.</td> 729*7c568831SAndroid Build Coastguard Worker</tr> 730*7c568831SAndroid Build Coastguard Worker</tbody> 731*7c568831SAndroid Build Coastguard Worker</table></div> 732*7c568831SAndroid Build Coastguard Worker</div> 733*7c568831SAndroid Build Coastguard Worker<hr> 734*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 735*7c568831SAndroid Build Coastguard Worker<h3> 736*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderAttributeCount"></a>xmlTextReaderAttributeCount ()</h3> 737*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderAttributeCount (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 738*7c568831SAndroid Build Coastguard Worker</pre> 739*7c568831SAndroid Build Coastguard Worker<p>Provides the number of attributes of the current node</p> 740*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 741*7c568831SAndroid Build Coastguard Worker<col align="left"> 742*7c568831SAndroid Build Coastguard Worker<tbody> 743*7c568831SAndroid Build Coastguard Worker<tr> 744*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 745*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 746*7c568831SAndroid Build Coastguard Worker</tr> 747*7c568831SAndroid Build Coastguard Worker<tr> 748*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 749*7c568831SAndroid Build Coastguard Worker<td>0 i no attributes, -1 in case of error or the <a href="libxml2-SAX.html#attribute">attribute</a> count</td> 750*7c568831SAndroid Build Coastguard Worker</tr> 751*7c568831SAndroid Build Coastguard Worker</tbody> 752*7c568831SAndroid Build Coastguard Worker</table></div> 753*7c568831SAndroid Build Coastguard Worker</div> 754*7c568831SAndroid Build Coastguard Worker<hr> 755*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 756*7c568831SAndroid Build Coastguard Worker<h3> 757*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderBaseUri"></a>xmlTextReaderBaseUri ()</h3> 758*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderBaseUri (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 759*7c568831SAndroid Build Coastguard Worker</pre> 760*7c568831SAndroid Build Coastguard Worker<p>The base URI of the node.</p> 761*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 762*7c568831SAndroid Build Coastguard Worker<col align="left"> 763*7c568831SAndroid Build Coastguard Worker<tbody> 764*7c568831SAndroid Build Coastguard Worker<tr> 765*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 766*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 767*7c568831SAndroid Build Coastguard Worker</tr> 768*7c568831SAndroid Build Coastguard Worker<tr> 769*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 770*7c568831SAndroid Build Coastguard Worker<td>the base URI or NULL if not available, if non NULL it need to be freed by the caller.</td> 771*7c568831SAndroid Build Coastguard Worker</tr> 772*7c568831SAndroid Build Coastguard Worker</tbody> 773*7c568831SAndroid Build Coastguard Worker</table></div> 774*7c568831SAndroid Build Coastguard Worker</div> 775*7c568831SAndroid Build Coastguard Worker<hr> 776*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 777*7c568831SAndroid Build Coastguard Worker<h3> 778*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderByteConsumed"></a>xmlTextReaderByteConsumed ()</h3> 779*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">long xmlTextReaderByteConsumed (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 780*7c568831SAndroid Build Coastguard Worker</pre> 781*7c568831SAndroid Build Coastguard Worker<p>This function provides the current index of the parser used by the reader, relative to the start of the current entity. This function actually just wraps a call to xmlBytesConsumed() for the parser context associated with the reader. See xmlBytesConsumed() for more information.</p> 782*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 783*7c568831SAndroid Build Coastguard Worker<col align="left"> 784*7c568831SAndroid Build Coastguard Worker<tbody> 785*7c568831SAndroid Build Coastguard Worker<tr> 786*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 787*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 788*7c568831SAndroid Build Coastguard Worker</tr> 789*7c568831SAndroid Build Coastguard Worker<tr> 790*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 791*7c568831SAndroid Build Coastguard Worker<td>the index in bytes from the beginning of the entity or -1 in case the index could not be computed.</td> 792*7c568831SAndroid Build Coastguard Worker</tr> 793*7c568831SAndroid Build Coastguard Worker</tbody> 794*7c568831SAndroid Build Coastguard Worker</table></div> 795*7c568831SAndroid Build Coastguard Worker</div> 796*7c568831SAndroid Build Coastguard Worker<hr> 797*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 798*7c568831SAndroid Build Coastguard Worker<h3> 799*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderClose"></a>xmlTextReaderClose ()</h3> 800*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderClose (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 801*7c568831SAndroid Build Coastguard Worker</pre> 802*7c568831SAndroid Build Coastguard Worker<p>This method releases any resources allocated by the current instance changes the state to Closed and close any underlying input.</p> 803*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 804*7c568831SAndroid Build Coastguard Worker<col align="left"> 805*7c568831SAndroid Build Coastguard Worker<tbody> 806*7c568831SAndroid Build Coastguard Worker<tr> 807*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 808*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 809*7c568831SAndroid Build Coastguard Worker</tr> 810*7c568831SAndroid Build Coastguard Worker<tr> 811*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 812*7c568831SAndroid Build Coastguard Worker<td>0 or -1 in case of error</td> 813*7c568831SAndroid Build Coastguard Worker</tr> 814*7c568831SAndroid Build Coastguard Worker</tbody> 815*7c568831SAndroid Build Coastguard Worker</table></div> 816*7c568831SAndroid Build Coastguard Worker</div> 817*7c568831SAndroid Build Coastguard Worker<hr> 818*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 819*7c568831SAndroid Build Coastguard Worker<h3> 820*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstBaseUri"></a>xmlTextReaderConstBaseUri ()</h3> 821*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstBaseUri (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 822*7c568831SAndroid Build Coastguard Worker</pre> 823*7c568831SAndroid Build Coastguard Worker<p>The base URI of the node.</p> 824*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 825*7c568831SAndroid Build Coastguard Worker<col align="left"> 826*7c568831SAndroid Build Coastguard Worker<tbody> 827*7c568831SAndroid Build Coastguard Worker<tr> 828*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 829*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 830*7c568831SAndroid Build Coastguard Worker</tr> 831*7c568831SAndroid Build Coastguard Worker<tr> 832*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 833*7c568831SAndroid Build Coastguard Worker<td>the base URI or NULL if not available, the string will be deallocated with the reader</td> 834*7c568831SAndroid Build Coastguard Worker</tr> 835*7c568831SAndroid Build Coastguard Worker</tbody> 836*7c568831SAndroid Build Coastguard Worker</table></div> 837*7c568831SAndroid Build Coastguard Worker</div> 838*7c568831SAndroid Build Coastguard Worker<hr> 839*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 840*7c568831SAndroid Build Coastguard Worker<h3> 841*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstEncoding"></a>xmlTextReaderConstEncoding ()</h3> 842*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstEncoding (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 843*7c568831SAndroid Build Coastguard Worker</pre> 844*7c568831SAndroid Build Coastguard Worker<p>Determine the encoding of the document being read.</p> 845*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 846*7c568831SAndroid Build Coastguard Worker<col align="left"> 847*7c568831SAndroid Build Coastguard Worker<tbody> 848*7c568831SAndroid Build Coastguard Worker<tr> 849*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 850*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 851*7c568831SAndroid Build Coastguard Worker</tr> 852*7c568831SAndroid Build Coastguard Worker<tr> 853*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 854*7c568831SAndroid Build Coastguard Worker<td>a string containing the encoding of the document or NULL in case of error. The string is deallocated with the reader.</td> 855*7c568831SAndroid Build Coastguard Worker</tr> 856*7c568831SAndroid Build Coastguard Worker</tbody> 857*7c568831SAndroid Build Coastguard Worker</table></div> 858*7c568831SAndroid Build Coastguard Worker</div> 859*7c568831SAndroid Build Coastguard Worker<hr> 860*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 861*7c568831SAndroid Build Coastguard Worker<h3> 862*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstLocalName"></a>xmlTextReaderConstLocalName ()</h3> 863*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstLocalName (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 864*7c568831SAndroid Build Coastguard Worker</pre> 865*7c568831SAndroid Build Coastguard Worker<p>The local name of the node.</p> 866*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 867*7c568831SAndroid Build Coastguard Worker<col align="left"> 868*7c568831SAndroid Build Coastguard Worker<tbody> 869*7c568831SAndroid Build Coastguard Worker<tr> 870*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 871*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 872*7c568831SAndroid Build Coastguard Worker</tr> 873*7c568831SAndroid Build Coastguard Worker<tr> 874*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 875*7c568831SAndroid Build Coastguard Worker<td>the local name or NULL if not available, the string will be deallocated with the reader.</td> 876*7c568831SAndroid Build Coastguard Worker</tr> 877*7c568831SAndroid Build Coastguard Worker</tbody> 878*7c568831SAndroid Build Coastguard Worker</table></div> 879*7c568831SAndroid Build Coastguard Worker</div> 880*7c568831SAndroid Build Coastguard Worker<hr> 881*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 882*7c568831SAndroid Build Coastguard Worker<h3> 883*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstName"></a>xmlTextReaderConstName ()</h3> 884*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstName (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 885*7c568831SAndroid Build Coastguard Worker</pre> 886*7c568831SAndroid Build Coastguard Worker<p>The qualified name of the node, equal to Prefix :LocalName.</p> 887*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 888*7c568831SAndroid Build Coastguard Worker<col align="left"> 889*7c568831SAndroid Build Coastguard Worker<tbody> 890*7c568831SAndroid Build Coastguard Worker<tr> 891*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 892*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 893*7c568831SAndroid Build Coastguard Worker</tr> 894*7c568831SAndroid Build Coastguard Worker<tr> 895*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 896*7c568831SAndroid Build Coastguard Worker<td>the local name or NULL if not available, the string is deallocated with the reader.</td> 897*7c568831SAndroid Build Coastguard Worker</tr> 898*7c568831SAndroid Build Coastguard Worker</tbody> 899*7c568831SAndroid Build Coastguard Worker</table></div> 900*7c568831SAndroid Build Coastguard Worker</div> 901*7c568831SAndroid Build Coastguard Worker<hr> 902*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 903*7c568831SAndroid Build Coastguard Worker<h3> 904*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstNamespaceUri"></a>xmlTextReaderConstNamespaceUri ()</h3> 905*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstNamespaceUri (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 906*7c568831SAndroid Build Coastguard Worker</pre> 907*7c568831SAndroid Build Coastguard Worker<p>The URI defining the namespace associated with the node.</p> 908*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 909*7c568831SAndroid Build Coastguard Worker<col align="left"> 910*7c568831SAndroid Build Coastguard Worker<tbody> 911*7c568831SAndroid Build Coastguard Worker<tr> 912*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 913*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 914*7c568831SAndroid Build Coastguard Worker</tr> 915*7c568831SAndroid Build Coastguard Worker<tr> 916*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 917*7c568831SAndroid Build Coastguard Worker<td>the namespace URI or NULL if not available, the string will be deallocated with the reader</td> 918*7c568831SAndroid Build Coastguard Worker</tr> 919*7c568831SAndroid Build Coastguard Worker</tbody> 920*7c568831SAndroid Build Coastguard Worker</table></div> 921*7c568831SAndroid Build Coastguard Worker</div> 922*7c568831SAndroid Build Coastguard Worker<hr> 923*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 924*7c568831SAndroid Build Coastguard Worker<h3> 925*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstPrefix"></a>xmlTextReaderConstPrefix ()</h3> 926*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstPrefix (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 927*7c568831SAndroid Build Coastguard Worker</pre> 928*7c568831SAndroid Build Coastguard Worker<p>A shorthand <a href="libxml2-SAX.html#reference">reference</a> to the namespace associated with the node.</p> 929*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 930*7c568831SAndroid Build Coastguard Worker<col align="left"> 931*7c568831SAndroid Build Coastguard Worker<tbody> 932*7c568831SAndroid Build Coastguard Worker<tr> 933*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 934*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 935*7c568831SAndroid Build Coastguard Worker</tr> 936*7c568831SAndroid Build Coastguard Worker<tr> 937*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 938*7c568831SAndroid Build Coastguard Worker<td>the prefix or NULL if not available, the string is deallocated with the reader.</td> 939*7c568831SAndroid Build Coastguard Worker</tr> 940*7c568831SAndroid Build Coastguard Worker</tbody> 941*7c568831SAndroid Build Coastguard Worker</table></div> 942*7c568831SAndroid Build Coastguard Worker</div> 943*7c568831SAndroid Build Coastguard Worker<hr> 944*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 945*7c568831SAndroid Build Coastguard Worker<h3> 946*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstString"></a>xmlTextReaderConstString ()</h3> 947*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstString (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * str)<br> 948*7c568831SAndroid Build Coastguard Worker</pre> 949*7c568831SAndroid Build Coastguard Worker<p>Get an interned string from the reader, allows for example to speedup string name comparisons</p> 950*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 951*7c568831SAndroid Build Coastguard Worker<col align="left"> 952*7c568831SAndroid Build Coastguard Worker<tbody> 953*7c568831SAndroid Build Coastguard Worker<tr> 954*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 955*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 956*7c568831SAndroid Build Coastguard Worker</tr> 957*7c568831SAndroid Build Coastguard Worker<tr> 958*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>str</tt></i>:</span></td> 959*7c568831SAndroid Build Coastguard Worker<td>the string to intern.</td> 960*7c568831SAndroid Build Coastguard Worker</tr> 961*7c568831SAndroid Build Coastguard Worker<tr> 962*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 963*7c568831SAndroid Build Coastguard Worker<td>an interned copy of the string or NULL in case of error. The string will be deallocated with the reader.</td> 964*7c568831SAndroid Build Coastguard Worker</tr> 965*7c568831SAndroid Build Coastguard Worker</tbody> 966*7c568831SAndroid Build Coastguard Worker</table></div> 967*7c568831SAndroid Build Coastguard Worker</div> 968*7c568831SAndroid Build Coastguard Worker<hr> 969*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 970*7c568831SAndroid Build Coastguard Worker<h3> 971*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstValue"></a>xmlTextReaderConstValue ()</h3> 972*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstValue (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 973*7c568831SAndroid Build Coastguard Worker</pre> 974*7c568831SAndroid Build Coastguard Worker<p>Provides the text value of the node if present</p> 975*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 976*7c568831SAndroid Build Coastguard Worker<col align="left"> 977*7c568831SAndroid Build Coastguard Worker<tbody> 978*7c568831SAndroid Build Coastguard Worker<tr> 979*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 980*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 981*7c568831SAndroid Build Coastguard Worker</tr> 982*7c568831SAndroid Build Coastguard Worker<tr> 983*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 984*7c568831SAndroid Build Coastguard Worker<td>the string or NULL if not available. The result will be deallocated on the next Read() operation.</td> 985*7c568831SAndroid Build Coastguard Worker</tr> 986*7c568831SAndroid Build Coastguard Worker</tbody> 987*7c568831SAndroid Build Coastguard Worker</table></div> 988*7c568831SAndroid Build Coastguard Worker</div> 989*7c568831SAndroid Build Coastguard Worker<hr> 990*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 991*7c568831SAndroid Build Coastguard Worker<h3> 992*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstXmlLang"></a>xmlTextReaderConstXmlLang ()</h3> 993*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstXmlLang (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 994*7c568831SAndroid Build Coastguard Worker</pre> 995*7c568831SAndroid Build Coastguard Worker<p>The xml:lang scope within which the node resides.</p> 996*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 997*7c568831SAndroid Build Coastguard Worker<col align="left"> 998*7c568831SAndroid Build Coastguard Worker<tbody> 999*7c568831SAndroid Build Coastguard Worker<tr> 1000*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1001*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1002*7c568831SAndroid Build Coastguard Worker</tr> 1003*7c568831SAndroid Build Coastguard Worker<tr> 1004*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1005*7c568831SAndroid Build Coastguard Worker<td>the xml:lang value or NULL if none exists.</td> 1006*7c568831SAndroid Build Coastguard Worker</tr> 1007*7c568831SAndroid Build Coastguard Worker</tbody> 1008*7c568831SAndroid Build Coastguard Worker</table></div> 1009*7c568831SAndroid Build Coastguard Worker</div> 1010*7c568831SAndroid Build Coastguard Worker<hr> 1011*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1012*7c568831SAndroid Build Coastguard Worker<h3> 1013*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderConstXmlVersion"></a>xmlTextReaderConstXmlVersion ()</h3> 1014*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderConstXmlVersion (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1015*7c568831SAndroid Build Coastguard Worker</pre> 1016*7c568831SAndroid Build Coastguard Worker<p>Determine the XML version of the document being read.</p> 1017*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1018*7c568831SAndroid Build Coastguard Worker<col align="left"> 1019*7c568831SAndroid Build Coastguard Worker<tbody> 1020*7c568831SAndroid Build Coastguard Worker<tr> 1021*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1022*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1023*7c568831SAndroid Build Coastguard Worker</tr> 1024*7c568831SAndroid Build Coastguard Worker<tr> 1025*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1026*7c568831SAndroid Build Coastguard Worker<td>a string containing the XML version of the document or NULL in case of error. The string is deallocated with the reader.</td> 1027*7c568831SAndroid Build Coastguard Worker</tr> 1028*7c568831SAndroid Build Coastguard Worker</tbody> 1029*7c568831SAndroid Build Coastguard Worker</table></div> 1030*7c568831SAndroid Build Coastguard Worker</div> 1031*7c568831SAndroid Build Coastguard Worker<hr> 1032*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1033*7c568831SAndroid Build Coastguard Worker<h3> 1034*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderCurrentDoc"></a>xmlTextReaderCurrentDoc ()</h3> 1035*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> xmlTextReaderCurrentDoc (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1036*7c568831SAndroid Build Coastguard Worker</pre> 1037*7c568831SAndroid Build Coastguard Worker<p>Hacking interface allowing to get the <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> corresponding to the current document being accessed by the <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>. NOTE: as a result of this call, the reader will not destroy the associated XML document and calling xmlFreeDoc() on the result is needed once the reader parsing has finished.</p> 1038*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1039*7c568831SAndroid Build Coastguard Worker<col align="left"> 1040*7c568831SAndroid Build Coastguard Worker<tbody> 1041*7c568831SAndroid Build Coastguard Worker<tr> 1042*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1043*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1044*7c568831SAndroid Build Coastguard Worker</tr> 1045*7c568831SAndroid Build Coastguard Worker<tr> 1046*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1047*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-tree.html#xmlDocPtr">xmlDocPtr</a> or NULL in case of error.</td> 1048*7c568831SAndroid Build Coastguard Worker</tr> 1049*7c568831SAndroid Build Coastguard Worker</tbody> 1050*7c568831SAndroid Build Coastguard Worker</table></div> 1051*7c568831SAndroid Build Coastguard Worker</div> 1052*7c568831SAndroid Build Coastguard Worker<hr> 1053*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1054*7c568831SAndroid Build Coastguard Worker<h3> 1055*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderCurrentNode"></a>xmlTextReaderCurrentNode ()</h3> 1056*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> xmlTextReaderCurrentNode (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1057*7c568831SAndroid Build Coastguard Worker</pre> 1058*7c568831SAndroid Build Coastguard Worker<p>Hacking interface allowing to get the <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> corresponding to the current node being accessed by the <a href="libxml2-xmlreader.html#xmlTextReader">xmlTextReader</a>. This is dangerous because the underlying node may be destroyed on the next Reads.</p> 1059*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1060*7c568831SAndroid Build Coastguard Worker<col align="left"> 1061*7c568831SAndroid Build Coastguard Worker<tbody> 1062*7c568831SAndroid Build Coastguard Worker<tr> 1063*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1064*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1065*7c568831SAndroid Build Coastguard Worker</tr> 1066*7c568831SAndroid Build Coastguard Worker<tr> 1067*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1068*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> or NULL in case of error.</td> 1069*7c568831SAndroid Build Coastguard Worker</tr> 1070*7c568831SAndroid Build Coastguard Worker</tbody> 1071*7c568831SAndroid Build Coastguard Worker</table></div> 1072*7c568831SAndroid Build Coastguard Worker</div> 1073*7c568831SAndroid Build Coastguard Worker<hr> 1074*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1075*7c568831SAndroid Build Coastguard Worker<h3> 1076*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderDepth"></a>xmlTextReaderDepth ()</h3> 1077*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderDepth (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1078*7c568831SAndroid Build Coastguard Worker</pre> 1079*7c568831SAndroid Build Coastguard Worker<p>The depth of the node in the tree.</p> 1080*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1081*7c568831SAndroid Build Coastguard Worker<col align="left"> 1082*7c568831SAndroid Build Coastguard Worker<tbody> 1083*7c568831SAndroid Build Coastguard Worker<tr> 1084*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1085*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1086*7c568831SAndroid Build Coastguard Worker</tr> 1087*7c568831SAndroid Build Coastguard Worker<tr> 1088*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1089*7c568831SAndroid Build Coastguard Worker<td>the depth or -1 in case of error</td> 1090*7c568831SAndroid Build Coastguard Worker</tr> 1091*7c568831SAndroid Build Coastguard Worker</tbody> 1092*7c568831SAndroid Build Coastguard Worker</table></div> 1093*7c568831SAndroid Build Coastguard Worker</div> 1094*7c568831SAndroid Build Coastguard Worker<hr> 1095*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1096*7c568831SAndroid Build Coastguard Worker<h3> 1097*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderExpand"></a>xmlTextReaderExpand ()</h3> 1098*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> xmlTextReaderExpand (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1099*7c568831SAndroid Build Coastguard Worker</pre> 1100*7c568831SAndroid Build Coastguard Worker<p>Reads the contents of the current node and the full subtree. It then makes the subtree available until the next xmlTextReaderRead() call</p> 1101*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1102*7c568831SAndroid Build Coastguard Worker<col align="left"> 1103*7c568831SAndroid Build Coastguard Worker<tbody> 1104*7c568831SAndroid Build Coastguard Worker<tr> 1105*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1106*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1107*7c568831SAndroid Build Coastguard Worker</tr> 1108*7c568831SAndroid Build Coastguard Worker<tr> 1109*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1110*7c568831SAndroid Build Coastguard Worker<td>a node pointer valid until the next xmlTextReaderRead() call or NULL in case of error.</td> 1111*7c568831SAndroid Build Coastguard Worker</tr> 1112*7c568831SAndroid Build Coastguard Worker</tbody> 1113*7c568831SAndroid Build Coastguard Worker</table></div> 1114*7c568831SAndroid Build Coastguard Worker</div> 1115*7c568831SAndroid Build Coastguard Worker<hr> 1116*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1117*7c568831SAndroid Build Coastguard Worker<h3> 1118*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetAttribute"></a>xmlTextReaderGetAttribute ()</h3> 1119*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderGetAttribute (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name)<br> 1120*7c568831SAndroid Build Coastguard Worker</pre> 1121*7c568831SAndroid Build Coastguard Worker<p>Provides the value of the <a href="libxml2-SAX.html#attribute">attribute</a> with the specified qualified name.</p> 1122*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1123*7c568831SAndroid Build Coastguard Worker<col align="left"> 1124*7c568831SAndroid Build Coastguard Worker<tbody> 1125*7c568831SAndroid Build Coastguard Worker<tr> 1126*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1127*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1128*7c568831SAndroid Build Coastguard Worker</tr> 1129*7c568831SAndroid Build Coastguard Worker<tr> 1130*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td> 1131*7c568831SAndroid Build Coastguard Worker<td>the qualified name of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1132*7c568831SAndroid Build Coastguard Worker</tr> 1133*7c568831SAndroid Build Coastguard Worker<tr> 1134*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1135*7c568831SAndroid Build Coastguard Worker<td>a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.</td> 1136*7c568831SAndroid Build Coastguard Worker</tr> 1137*7c568831SAndroid Build Coastguard Worker</tbody> 1138*7c568831SAndroid Build Coastguard Worker</table></div> 1139*7c568831SAndroid Build Coastguard Worker</div> 1140*7c568831SAndroid Build Coastguard Worker<hr> 1141*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1142*7c568831SAndroid Build Coastguard Worker<h3> 1143*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetAttributeNo"></a>xmlTextReaderGetAttributeNo ()</h3> 1144*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderGetAttributeNo (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int no)<br> 1145*7c568831SAndroid Build Coastguard Worker</pre> 1146*7c568831SAndroid Build Coastguard Worker<p>Provides the value of the <a href="libxml2-SAX.html#attribute">attribute</a> with the specified index relative to the containing element.</p> 1147*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1148*7c568831SAndroid Build Coastguard Worker<col align="left"> 1149*7c568831SAndroid Build Coastguard Worker<tbody> 1150*7c568831SAndroid Build Coastguard Worker<tr> 1151*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1152*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1153*7c568831SAndroid Build Coastguard Worker</tr> 1154*7c568831SAndroid Build Coastguard Worker<tr> 1155*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>no</tt></i>:</span></td> 1156*7c568831SAndroid Build Coastguard Worker<td>the zero-based index of the <a href="libxml2-SAX.html#attribute">attribute</a> relative to the containing element</td> 1157*7c568831SAndroid Build Coastguard Worker</tr> 1158*7c568831SAndroid Build Coastguard Worker<tr> 1159*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1160*7c568831SAndroid Build Coastguard Worker<td>a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.</td> 1161*7c568831SAndroid Build Coastguard Worker</tr> 1162*7c568831SAndroid Build Coastguard Worker</tbody> 1163*7c568831SAndroid Build Coastguard Worker</table></div> 1164*7c568831SAndroid Build Coastguard Worker</div> 1165*7c568831SAndroid Build Coastguard Worker<hr> 1166*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1167*7c568831SAndroid Build Coastguard Worker<h3> 1168*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetAttributeNs"></a>xmlTextReaderGetAttributeNs ()</h3> 1169*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderGetAttributeNs (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * localName, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * namespaceURI)<br> 1170*7c568831SAndroid Build Coastguard Worker</pre> 1171*7c568831SAndroid Build Coastguard Worker<p>Provides the value of the specified <a href="libxml2-SAX.html#attribute">attribute</a></p> 1172*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1173*7c568831SAndroid Build Coastguard Worker<col align="left"> 1174*7c568831SAndroid Build Coastguard Worker<tbody> 1175*7c568831SAndroid Build Coastguard Worker<tr> 1176*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1177*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1178*7c568831SAndroid Build Coastguard Worker</tr> 1179*7c568831SAndroid Build Coastguard Worker<tr> 1180*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>localName</tt></i>:</span></td> 1181*7c568831SAndroid Build Coastguard Worker<td>the local name of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1182*7c568831SAndroid Build Coastguard Worker</tr> 1183*7c568831SAndroid Build Coastguard Worker<tr> 1184*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>namespaceURI</tt></i>:</span></td> 1185*7c568831SAndroid Build Coastguard Worker<td>the namespace URI of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1186*7c568831SAndroid Build Coastguard Worker</tr> 1187*7c568831SAndroid Build Coastguard Worker<tr> 1188*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1189*7c568831SAndroid Build Coastguard Worker<td>a string containing the value of the specified attribute, or NULL in case of error. The string must be deallocated by the caller.</td> 1190*7c568831SAndroid Build Coastguard Worker</tr> 1191*7c568831SAndroid Build Coastguard Worker</tbody> 1192*7c568831SAndroid Build Coastguard Worker</table></div> 1193*7c568831SAndroid Build Coastguard Worker</div> 1194*7c568831SAndroid Build Coastguard Worker<hr> 1195*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1196*7c568831SAndroid Build Coastguard Worker<h3> 1197*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetErrorHandler"></a>xmlTextReaderGetErrorHandler ()</h3> 1198*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlTextReaderGetErrorHandler (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlreader.html#xmlTextReaderErrorFunc">xmlTextReaderErrorFunc</a> * f, <br> void ** arg)<br> 1199*7c568831SAndroid Build Coastguard Worker</pre> 1200*7c568831SAndroid Build Coastguard Worker<p>Retrieve the error callback function and user argument.</p> 1201*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1202*7c568831SAndroid Build Coastguard Worker<col align="left"> 1203*7c568831SAndroid Build Coastguard Worker<tbody> 1204*7c568831SAndroid Build Coastguard Worker<tr> 1205*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1206*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1207*7c568831SAndroid Build Coastguard Worker</tr> 1208*7c568831SAndroid Build Coastguard Worker<tr> 1209*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>f</tt></i>:</span></td> 1210*7c568831SAndroid Build Coastguard Worker<td>the callback function or NULL is no callback has been registered</td> 1211*7c568831SAndroid Build Coastguard Worker</tr> 1212*7c568831SAndroid Build Coastguard Worker<tr> 1213*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>arg</tt></i>:</span></td> 1214*7c568831SAndroid Build Coastguard Worker<td>a user argument</td> 1215*7c568831SAndroid Build Coastguard Worker</tr> 1216*7c568831SAndroid Build Coastguard Worker</tbody> 1217*7c568831SAndroid Build Coastguard Worker</table></div> 1218*7c568831SAndroid Build Coastguard Worker</div> 1219*7c568831SAndroid Build Coastguard Worker<hr> 1220*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1221*7c568831SAndroid Build Coastguard Worker<h3> 1222*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetLastError"></a>xmlTextReaderGetLastError ()</h3> 1223*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">const <a href="libxml2-xmlerror.html#xmlError">xmlError</a> * xmlTextReaderGetLastError (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1224*7c568831SAndroid Build Coastguard Worker</pre> 1225*7c568831SAndroid Build Coastguard Worker<p>Available since 2.13.0.</p> 1226*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1227*7c568831SAndroid Build Coastguard Worker<col align="left"> 1228*7c568831SAndroid Build Coastguard Worker<tbody> 1229*7c568831SAndroid Build Coastguard Worker<tr> 1230*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1231*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 1232*7c568831SAndroid Build Coastguard Worker</tr> 1233*7c568831SAndroid Build Coastguard Worker<tr> 1234*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1235*7c568831SAndroid Build Coastguard Worker<td>the last error.</td> 1236*7c568831SAndroid Build Coastguard Worker</tr> 1237*7c568831SAndroid Build Coastguard Worker</tbody> 1238*7c568831SAndroid Build Coastguard Worker</table></div> 1239*7c568831SAndroid Build Coastguard Worker</div> 1240*7c568831SAndroid Build Coastguard Worker<hr> 1241*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1242*7c568831SAndroid Build Coastguard Worker<h3> 1243*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetParserColumnNumber"></a>xmlTextReaderGetParserColumnNumber ()</h3> 1244*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderGetParserColumnNumber (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1245*7c568831SAndroid Build Coastguard Worker</pre> 1246*7c568831SAndroid Build Coastguard Worker<p>Provide the column number of the current parsing point.</p> 1247*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1248*7c568831SAndroid Build Coastguard Worker<col align="left"> 1249*7c568831SAndroid Build Coastguard Worker<tbody> 1250*7c568831SAndroid Build Coastguard Worker<tr> 1251*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1252*7c568831SAndroid Build Coastguard Worker<td>the user data (XML reader context)</td> 1253*7c568831SAndroid Build Coastguard Worker</tr> 1254*7c568831SAndroid Build Coastguard Worker<tr> 1255*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1256*7c568831SAndroid Build Coastguard Worker<td>an int or 0 if not available</td> 1257*7c568831SAndroid Build Coastguard Worker</tr> 1258*7c568831SAndroid Build Coastguard Worker</tbody> 1259*7c568831SAndroid Build Coastguard Worker</table></div> 1260*7c568831SAndroid Build Coastguard Worker</div> 1261*7c568831SAndroid Build Coastguard Worker<hr> 1262*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1263*7c568831SAndroid Build Coastguard Worker<h3> 1264*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetParserLineNumber"></a>xmlTextReaderGetParserLineNumber ()</h3> 1265*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderGetParserLineNumber (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1266*7c568831SAndroid Build Coastguard Worker</pre> 1267*7c568831SAndroid Build Coastguard Worker<p>Provide the line number of the current parsing point.</p> 1268*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1269*7c568831SAndroid Build Coastguard Worker<col align="left"> 1270*7c568831SAndroid Build Coastguard Worker<tbody> 1271*7c568831SAndroid Build Coastguard Worker<tr> 1272*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1273*7c568831SAndroid Build Coastguard Worker<td>the user data (XML reader context)</td> 1274*7c568831SAndroid Build Coastguard Worker</tr> 1275*7c568831SAndroid Build Coastguard Worker<tr> 1276*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1277*7c568831SAndroid Build Coastguard Worker<td>an int or 0 if not available</td> 1278*7c568831SAndroid Build Coastguard Worker</tr> 1279*7c568831SAndroid Build Coastguard Worker</tbody> 1280*7c568831SAndroid Build Coastguard Worker</table></div> 1281*7c568831SAndroid Build Coastguard Worker</div> 1282*7c568831SAndroid Build Coastguard Worker<hr> 1283*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1284*7c568831SAndroid Build Coastguard Worker<h3> 1285*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetParserProp"></a>xmlTextReaderGetParserProp ()</h3> 1286*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderGetParserProp (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int prop)<br> 1287*7c568831SAndroid Build Coastguard Worker</pre> 1288*7c568831SAndroid Build Coastguard Worker<p>Read the parser internal property.</p> 1289*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1290*7c568831SAndroid Build Coastguard Worker<col align="left"> 1291*7c568831SAndroid Build Coastguard Worker<tbody> 1292*7c568831SAndroid Build Coastguard Worker<tr> 1293*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1294*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1295*7c568831SAndroid Build Coastguard Worker</tr> 1296*7c568831SAndroid Build Coastguard Worker<tr> 1297*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>prop</tt></i>:</span></td> 1298*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlParserProperties">xmlParserProperties</a> to get</td> 1299*7c568831SAndroid Build Coastguard Worker</tr> 1300*7c568831SAndroid Build Coastguard Worker<tr> 1301*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1302*7c568831SAndroid Build Coastguard Worker<td>the value, usually 0 or 1, or -1 in case of error.</td> 1303*7c568831SAndroid Build Coastguard Worker</tr> 1304*7c568831SAndroid Build Coastguard Worker</tbody> 1305*7c568831SAndroid Build Coastguard Worker</table></div> 1306*7c568831SAndroid Build Coastguard Worker</div> 1307*7c568831SAndroid Build Coastguard Worker<hr> 1308*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1309*7c568831SAndroid Build Coastguard Worker<h3> 1310*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderGetRemainder"></a>xmlTextReaderGetRemainder ()</h3> 1311*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> xmlTextReaderGetRemainder (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1312*7c568831SAndroid Build Coastguard Worker</pre> 1313*7c568831SAndroid Build Coastguard Worker<p>Method to get the remainder of the buffered XML. this method stops the parser, set its state to End Of File and return the input stream with what is left that the parser did not use. The implementation is not good, the parser certainly progressed past what's left in reader->input, and there is an allocation problem. Best would be to rewrite it differently.</p> 1314*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1315*7c568831SAndroid Build Coastguard Worker<col align="left"> 1316*7c568831SAndroid Build Coastguard Worker<tbody> 1317*7c568831SAndroid Build Coastguard Worker<tr> 1318*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1319*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1320*7c568831SAndroid Build Coastguard Worker</tr> 1321*7c568831SAndroid Build Coastguard Worker<tr> 1322*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1323*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> attached to the XML or NULL in case of error.</td> 1324*7c568831SAndroid Build Coastguard Worker</tr> 1325*7c568831SAndroid Build Coastguard Worker</tbody> 1326*7c568831SAndroid Build Coastguard Worker</table></div> 1327*7c568831SAndroid Build Coastguard Worker</div> 1328*7c568831SAndroid Build Coastguard Worker<hr> 1329*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1330*7c568831SAndroid Build Coastguard Worker<h3> 1331*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderHasAttributes"></a>xmlTextReaderHasAttributes ()</h3> 1332*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderHasAttributes (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1333*7c568831SAndroid Build Coastguard Worker</pre> 1334*7c568831SAndroid Build Coastguard Worker<p>Whether the node has attributes.</p> 1335*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1336*7c568831SAndroid Build Coastguard Worker<col align="left"> 1337*7c568831SAndroid Build Coastguard Worker<tbody> 1338*7c568831SAndroid Build Coastguard Worker<tr> 1339*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1340*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1341*7c568831SAndroid Build Coastguard Worker</tr> 1342*7c568831SAndroid Build Coastguard Worker<tr> 1343*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1344*7c568831SAndroid Build Coastguard Worker<td>1 if true, 0 if false, and -1 in case or error</td> 1345*7c568831SAndroid Build Coastguard Worker</tr> 1346*7c568831SAndroid Build Coastguard Worker</tbody> 1347*7c568831SAndroid Build Coastguard Worker</table></div> 1348*7c568831SAndroid Build Coastguard Worker</div> 1349*7c568831SAndroid Build Coastguard Worker<hr> 1350*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1351*7c568831SAndroid Build Coastguard Worker<h3> 1352*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderHasValue"></a>xmlTextReaderHasValue ()</h3> 1353*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderHasValue (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1354*7c568831SAndroid Build Coastguard Worker</pre> 1355*7c568831SAndroid Build Coastguard Worker<p>Whether the node can have a text value.</p> 1356*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1357*7c568831SAndroid Build Coastguard Worker<col align="left"> 1358*7c568831SAndroid Build Coastguard Worker<tbody> 1359*7c568831SAndroid Build Coastguard Worker<tr> 1360*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1361*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1362*7c568831SAndroid Build Coastguard Worker</tr> 1363*7c568831SAndroid Build Coastguard Worker<tr> 1364*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1365*7c568831SAndroid Build Coastguard Worker<td>1 if true, 0 if false, and -1 in case or error</td> 1366*7c568831SAndroid Build Coastguard Worker</tr> 1367*7c568831SAndroid Build Coastguard Worker</tbody> 1368*7c568831SAndroid Build Coastguard Worker</table></div> 1369*7c568831SAndroid Build Coastguard Worker</div> 1370*7c568831SAndroid Build Coastguard Worker<hr> 1371*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1372*7c568831SAndroid Build Coastguard Worker<h3> 1373*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderIsDefault"></a>xmlTextReaderIsDefault ()</h3> 1374*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderIsDefault (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1375*7c568831SAndroid Build Coastguard Worker</pre> 1376*7c568831SAndroid Build Coastguard Worker<p>Whether an Attribute node was generated from the default value defined in the DTD or schema.</p> 1377*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1378*7c568831SAndroid Build Coastguard Worker<col align="left"> 1379*7c568831SAndroid Build Coastguard Worker<tbody> 1380*7c568831SAndroid Build Coastguard Worker<tr> 1381*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1382*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1383*7c568831SAndroid Build Coastguard Worker</tr> 1384*7c568831SAndroid Build Coastguard Worker<tr> 1385*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1386*7c568831SAndroid Build Coastguard Worker<td>0 if not defaulted, 1 if defaulted, and -1 in case of error</td> 1387*7c568831SAndroid Build Coastguard Worker</tr> 1388*7c568831SAndroid Build Coastguard Worker</tbody> 1389*7c568831SAndroid Build Coastguard Worker</table></div> 1390*7c568831SAndroid Build Coastguard Worker</div> 1391*7c568831SAndroid Build Coastguard Worker<hr> 1392*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1393*7c568831SAndroid Build Coastguard Worker<h3> 1394*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderIsEmptyElement"></a>xmlTextReaderIsEmptyElement ()</h3> 1395*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderIsEmptyElement (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1396*7c568831SAndroid Build Coastguard Worker</pre> 1397*7c568831SAndroid Build Coastguard Worker<p>Check if the current node is empty</p> 1398*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1399*7c568831SAndroid Build Coastguard Worker<col align="left"> 1400*7c568831SAndroid Build Coastguard Worker<tbody> 1401*7c568831SAndroid Build Coastguard Worker<tr> 1402*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1403*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1404*7c568831SAndroid Build Coastguard Worker</tr> 1405*7c568831SAndroid Build Coastguard Worker<tr> 1406*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1407*7c568831SAndroid Build Coastguard Worker<td>1 if empty, 0 if not and -1 in case of error</td> 1408*7c568831SAndroid Build Coastguard Worker</tr> 1409*7c568831SAndroid Build Coastguard Worker</tbody> 1410*7c568831SAndroid Build Coastguard Worker</table></div> 1411*7c568831SAndroid Build Coastguard Worker</div> 1412*7c568831SAndroid Build Coastguard Worker<hr> 1413*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1414*7c568831SAndroid Build Coastguard Worker<h3> 1415*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderIsNamespaceDecl"></a>xmlTextReaderIsNamespaceDecl ()</h3> 1416*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderIsNamespaceDecl (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1417*7c568831SAndroid Build Coastguard Worker</pre> 1418*7c568831SAndroid Build Coastguard Worker<p>Determine whether the current node is a namespace declaration rather than a regular <a href="libxml2-SAX.html#attribute">attribute</a>.</p> 1419*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1420*7c568831SAndroid Build Coastguard Worker<col align="left"> 1421*7c568831SAndroid Build Coastguard Worker<tbody> 1422*7c568831SAndroid Build Coastguard Worker<tr> 1423*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1424*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1425*7c568831SAndroid Build Coastguard Worker</tr> 1426*7c568831SAndroid Build Coastguard Worker<tr> 1427*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1428*7c568831SAndroid Build Coastguard Worker<td>1 if the current node is a namespace declaration, 0 if it is a regular <a href="libxml2-SAX.html#attribute">attribute</a> or other type of node, or -1 in case of error.</td> 1429*7c568831SAndroid Build Coastguard Worker</tr> 1430*7c568831SAndroid Build Coastguard Worker</tbody> 1431*7c568831SAndroid Build Coastguard Worker</table></div> 1432*7c568831SAndroid Build Coastguard Worker</div> 1433*7c568831SAndroid Build Coastguard Worker<hr> 1434*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1435*7c568831SAndroid Build Coastguard Worker<h3> 1436*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderIsValid"></a>xmlTextReaderIsValid ()</h3> 1437*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderIsValid (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1438*7c568831SAndroid Build Coastguard Worker</pre> 1439*7c568831SAndroid Build Coastguard Worker<p>Retrieve the validity status from the parser context</p> 1440*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1441*7c568831SAndroid Build Coastguard Worker<col align="left"> 1442*7c568831SAndroid Build Coastguard Worker<tbody> 1443*7c568831SAndroid Build Coastguard Worker<tr> 1444*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1445*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1446*7c568831SAndroid Build Coastguard Worker</tr> 1447*7c568831SAndroid Build Coastguard Worker<tr> 1448*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1449*7c568831SAndroid Build Coastguard Worker<td>the flag value 1 if valid, 0 if no, and -1 in case of error</td> 1450*7c568831SAndroid Build Coastguard Worker</tr> 1451*7c568831SAndroid Build Coastguard Worker</tbody> 1452*7c568831SAndroid Build Coastguard Worker</table></div> 1453*7c568831SAndroid Build Coastguard Worker</div> 1454*7c568831SAndroid Build Coastguard Worker<hr> 1455*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1456*7c568831SAndroid Build Coastguard Worker<h3> 1457*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderLocalName"></a>xmlTextReaderLocalName ()</h3> 1458*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderLocalName (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1459*7c568831SAndroid Build Coastguard Worker</pre> 1460*7c568831SAndroid Build Coastguard Worker<p>The local name of the node.</p> 1461*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1462*7c568831SAndroid Build Coastguard Worker<col align="left"> 1463*7c568831SAndroid Build Coastguard Worker<tbody> 1464*7c568831SAndroid Build Coastguard Worker<tr> 1465*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1466*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1467*7c568831SAndroid Build Coastguard Worker</tr> 1468*7c568831SAndroid Build Coastguard Worker<tr> 1469*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1470*7c568831SAndroid Build Coastguard Worker<td>the local name or NULL if not available, if non NULL it need to be freed by the caller.</td> 1471*7c568831SAndroid Build Coastguard Worker</tr> 1472*7c568831SAndroid Build Coastguard Worker</tbody> 1473*7c568831SAndroid Build Coastguard Worker</table></div> 1474*7c568831SAndroid Build Coastguard Worker</div> 1475*7c568831SAndroid Build Coastguard Worker<hr> 1476*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1477*7c568831SAndroid Build Coastguard Worker<h3> 1478*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderLocatorBaseURI"></a>xmlTextReaderLocatorBaseURI ()</h3> 1479*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderLocatorBaseURI (<a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator)<br> 1480*7c568831SAndroid Build Coastguard Worker</pre> 1481*7c568831SAndroid Build Coastguard Worker<p>Obtain the base URI for the given locator.</p> 1482*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1483*7c568831SAndroid Build Coastguard Worker<col align="left"> 1484*7c568831SAndroid Build Coastguard Worker<tbody> 1485*7c568831SAndroid Build Coastguard Worker<tr> 1486*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>locator</tt></i>:</span></td> 1487*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> used</td> 1488*7c568831SAndroid Build Coastguard Worker</tr> 1489*7c568831SAndroid Build Coastguard Worker<tr> 1490*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1491*7c568831SAndroid Build Coastguard Worker<td>the base URI or NULL in case of error, if non NULL it need to be freed by the caller.</td> 1492*7c568831SAndroid Build Coastguard Worker</tr> 1493*7c568831SAndroid Build Coastguard Worker</tbody> 1494*7c568831SAndroid Build Coastguard Worker</table></div> 1495*7c568831SAndroid Build Coastguard Worker</div> 1496*7c568831SAndroid Build Coastguard Worker<hr> 1497*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1498*7c568831SAndroid Build Coastguard Worker<h3> 1499*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderLocatorLineNumber"></a>xmlTextReaderLocatorLineNumber ()</h3> 1500*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderLocatorLineNumber (<a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> locator)<br> 1501*7c568831SAndroid Build Coastguard Worker</pre> 1502*7c568831SAndroid Build Coastguard Worker<p>Obtain the line number for the given locator.</p> 1503*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1504*7c568831SAndroid Build Coastguard Worker<col align="left"> 1505*7c568831SAndroid Build Coastguard Worker<tbody> 1506*7c568831SAndroid Build Coastguard Worker<tr> 1507*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>locator</tt></i>:</span></td> 1508*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderLocatorPtr">xmlTextReaderLocatorPtr</a> used</td> 1509*7c568831SAndroid Build Coastguard Worker</tr> 1510*7c568831SAndroid Build Coastguard Worker<tr> 1511*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1512*7c568831SAndroid Build Coastguard Worker<td>the line number or -1 in case of error.</td> 1513*7c568831SAndroid Build Coastguard Worker</tr> 1514*7c568831SAndroid Build Coastguard Worker</tbody> 1515*7c568831SAndroid Build Coastguard Worker</table></div> 1516*7c568831SAndroid Build Coastguard Worker</div> 1517*7c568831SAndroid Build Coastguard Worker<hr> 1518*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1519*7c568831SAndroid Build Coastguard Worker<h3> 1520*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderLookupNamespace"></a>xmlTextReaderLookupNamespace ()</h3> 1521*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderLookupNamespace (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * prefix)<br> 1522*7c568831SAndroid Build Coastguard Worker</pre> 1523*7c568831SAndroid Build Coastguard Worker<p>Resolves a namespace prefix in the scope of the current element.</p> 1524*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1525*7c568831SAndroid Build Coastguard Worker<col align="left"> 1526*7c568831SAndroid Build Coastguard Worker<tbody> 1527*7c568831SAndroid Build Coastguard Worker<tr> 1528*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1529*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1530*7c568831SAndroid Build Coastguard Worker</tr> 1531*7c568831SAndroid Build Coastguard Worker<tr> 1532*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>prefix</tt></i>:</span></td> 1533*7c568831SAndroid Build Coastguard Worker<td>the prefix whose namespace URI is to be resolved. To return the default namespace, specify NULL</td> 1534*7c568831SAndroid Build Coastguard Worker</tr> 1535*7c568831SAndroid Build Coastguard Worker<tr> 1536*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1537*7c568831SAndroid Build Coastguard Worker<td>a string containing the namespace URI to which the prefix maps or NULL in case of error. The string must be deallocated by the caller.</td> 1538*7c568831SAndroid Build Coastguard Worker</tr> 1539*7c568831SAndroid Build Coastguard Worker</tbody> 1540*7c568831SAndroid Build Coastguard Worker</table></div> 1541*7c568831SAndroid Build Coastguard Worker</div> 1542*7c568831SAndroid Build Coastguard Worker<hr> 1543*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1544*7c568831SAndroid Build Coastguard Worker<h3> 1545*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToAttribute"></a>xmlTextReaderMoveToAttribute ()</h3> 1546*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToAttribute (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * name)<br> 1547*7c568831SAndroid Build Coastguard Worker</pre> 1548*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the <a href="libxml2-SAX.html#attribute">attribute</a> with the specified qualified name.</p> 1549*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1550*7c568831SAndroid Build Coastguard Worker<col align="left"> 1551*7c568831SAndroid Build Coastguard Worker<tbody> 1552*7c568831SAndroid Build Coastguard Worker<tr> 1553*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1554*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1555*7c568831SAndroid Build Coastguard Worker</tr> 1556*7c568831SAndroid Build Coastguard Worker<tr> 1557*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>name</tt></i>:</span></td> 1558*7c568831SAndroid Build Coastguard Worker<td>the qualified name of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1559*7c568831SAndroid Build Coastguard Worker</tr> 1560*7c568831SAndroid Build Coastguard Worker<tr> 1561*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1562*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not found</td> 1563*7c568831SAndroid Build Coastguard Worker</tr> 1564*7c568831SAndroid Build Coastguard Worker</tbody> 1565*7c568831SAndroid Build Coastguard Worker</table></div> 1566*7c568831SAndroid Build Coastguard Worker</div> 1567*7c568831SAndroid Build Coastguard Worker<hr> 1568*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1569*7c568831SAndroid Build Coastguard Worker<h3> 1570*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToAttributeNo"></a>xmlTextReaderMoveToAttributeNo ()</h3> 1571*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToAttributeNo (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int no)<br> 1572*7c568831SAndroid Build Coastguard Worker</pre> 1573*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the <a href="libxml2-SAX.html#attribute">attribute</a> with the specified index relative to the containing element.</p> 1574*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1575*7c568831SAndroid Build Coastguard Worker<col align="left"> 1576*7c568831SAndroid Build Coastguard Worker<tbody> 1577*7c568831SAndroid Build Coastguard Worker<tr> 1578*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1579*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1580*7c568831SAndroid Build Coastguard Worker</tr> 1581*7c568831SAndroid Build Coastguard Worker<tr> 1582*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>no</tt></i>:</span></td> 1583*7c568831SAndroid Build Coastguard Worker<td>the zero-based index of the <a href="libxml2-SAX.html#attribute">attribute</a> relative to the containing element.</td> 1584*7c568831SAndroid Build Coastguard Worker</tr> 1585*7c568831SAndroid Build Coastguard Worker<tr> 1586*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1587*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not found</td> 1588*7c568831SAndroid Build Coastguard Worker</tr> 1589*7c568831SAndroid Build Coastguard Worker</tbody> 1590*7c568831SAndroid Build Coastguard Worker</table></div> 1591*7c568831SAndroid Build Coastguard Worker</div> 1592*7c568831SAndroid Build Coastguard Worker<hr> 1593*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1594*7c568831SAndroid Build Coastguard Worker<h3> 1595*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToAttributeNs"></a>xmlTextReaderMoveToAttributeNs ()</h3> 1596*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToAttributeNs (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * localName, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * namespaceURI)<br> 1597*7c568831SAndroid Build Coastguard Worker</pre> 1598*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the <a href="libxml2-SAX.html#attribute">attribute</a> with the specified local name and namespace URI.</p> 1599*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1600*7c568831SAndroid Build Coastguard Worker<col align="left"> 1601*7c568831SAndroid Build Coastguard Worker<tbody> 1602*7c568831SAndroid Build Coastguard Worker<tr> 1603*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1604*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1605*7c568831SAndroid Build Coastguard Worker</tr> 1606*7c568831SAndroid Build Coastguard Worker<tr> 1607*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>localName</tt></i>:</span></td> 1608*7c568831SAndroid Build Coastguard Worker<td>the local name of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1609*7c568831SAndroid Build Coastguard Worker</tr> 1610*7c568831SAndroid Build Coastguard Worker<tr> 1611*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>namespaceURI</tt></i>:</span></td> 1612*7c568831SAndroid Build Coastguard Worker<td>the namespace URI of the <a href="libxml2-SAX.html#attribute">attribute</a>.</td> 1613*7c568831SAndroid Build Coastguard Worker</tr> 1614*7c568831SAndroid Build Coastguard Worker<tr> 1615*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1616*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not found</td> 1617*7c568831SAndroid Build Coastguard Worker</tr> 1618*7c568831SAndroid Build Coastguard Worker</tbody> 1619*7c568831SAndroid Build Coastguard Worker</table></div> 1620*7c568831SAndroid Build Coastguard Worker</div> 1621*7c568831SAndroid Build Coastguard Worker<hr> 1622*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1623*7c568831SAndroid Build Coastguard Worker<h3> 1624*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToElement"></a>xmlTextReaderMoveToElement ()</h3> 1625*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToElement (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1626*7c568831SAndroid Build Coastguard Worker</pre> 1627*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the node that contains the current Attribute node.</p> 1628*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1629*7c568831SAndroid Build Coastguard Worker<col align="left"> 1630*7c568831SAndroid Build Coastguard Worker<tbody> 1631*7c568831SAndroid Build Coastguard Worker<tr> 1632*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1633*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1634*7c568831SAndroid Build Coastguard Worker</tr> 1635*7c568831SAndroid Build Coastguard Worker<tr> 1636*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1637*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not moved</td> 1638*7c568831SAndroid Build Coastguard Worker</tr> 1639*7c568831SAndroid Build Coastguard Worker</tbody> 1640*7c568831SAndroid Build Coastguard Worker</table></div> 1641*7c568831SAndroid Build Coastguard Worker</div> 1642*7c568831SAndroid Build Coastguard Worker<hr> 1643*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1644*7c568831SAndroid Build Coastguard Worker<h3> 1645*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToFirstAttribute"></a>xmlTextReaderMoveToFirstAttribute ()</h3> 1646*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToFirstAttribute (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1647*7c568831SAndroid Build Coastguard Worker</pre> 1648*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the first <a href="libxml2-SAX.html#attribute">attribute</a> associated with the current node.</p> 1649*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1650*7c568831SAndroid Build Coastguard Worker<col align="left"> 1651*7c568831SAndroid Build Coastguard Worker<tbody> 1652*7c568831SAndroid Build Coastguard Worker<tr> 1653*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1654*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1655*7c568831SAndroid Build Coastguard Worker</tr> 1656*7c568831SAndroid Build Coastguard Worker<tr> 1657*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1658*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not found</td> 1659*7c568831SAndroid Build Coastguard Worker</tr> 1660*7c568831SAndroid Build Coastguard Worker</tbody> 1661*7c568831SAndroid Build Coastguard Worker</table></div> 1662*7c568831SAndroid Build Coastguard Worker</div> 1663*7c568831SAndroid Build Coastguard Worker<hr> 1664*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1665*7c568831SAndroid Build Coastguard Worker<h3> 1666*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderMoveToNextAttribute"></a>xmlTextReaderMoveToNextAttribute ()</h3> 1667*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderMoveToNextAttribute (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1668*7c568831SAndroid Build Coastguard Worker</pre> 1669*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the next <a href="libxml2-SAX.html#attribute">attribute</a> associated with the current node.</p> 1670*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1671*7c568831SAndroid Build Coastguard Worker<col align="left"> 1672*7c568831SAndroid Build Coastguard Worker<tbody> 1673*7c568831SAndroid Build Coastguard Worker<tr> 1674*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1675*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1676*7c568831SAndroid Build Coastguard Worker</tr> 1677*7c568831SAndroid Build Coastguard Worker<tr> 1678*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1679*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, -1 in case of error, 0 if not found</td> 1680*7c568831SAndroid Build Coastguard Worker</tr> 1681*7c568831SAndroid Build Coastguard Worker</tbody> 1682*7c568831SAndroid Build Coastguard Worker</table></div> 1683*7c568831SAndroid Build Coastguard Worker</div> 1684*7c568831SAndroid Build Coastguard Worker<hr> 1685*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1686*7c568831SAndroid Build Coastguard Worker<h3> 1687*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderName"></a>xmlTextReaderName ()</h3> 1688*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderName (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1689*7c568831SAndroid Build Coastguard Worker</pre> 1690*7c568831SAndroid Build Coastguard Worker<p>The qualified name of the node, equal to Prefix :LocalName.</p> 1691*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1692*7c568831SAndroid Build Coastguard Worker<col align="left"> 1693*7c568831SAndroid Build Coastguard Worker<tbody> 1694*7c568831SAndroid Build Coastguard Worker<tr> 1695*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1696*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1697*7c568831SAndroid Build Coastguard Worker</tr> 1698*7c568831SAndroid Build Coastguard Worker<tr> 1699*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1700*7c568831SAndroid Build Coastguard Worker<td>the local name or NULL if not available, if non NULL it need to be freed by the caller.</td> 1701*7c568831SAndroid Build Coastguard Worker</tr> 1702*7c568831SAndroid Build Coastguard Worker</tbody> 1703*7c568831SAndroid Build Coastguard Worker</table></div> 1704*7c568831SAndroid Build Coastguard Worker</div> 1705*7c568831SAndroid Build Coastguard Worker<hr> 1706*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1707*7c568831SAndroid Build Coastguard Worker<h3> 1708*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderNamespaceUri"></a>xmlTextReaderNamespaceUri ()</h3> 1709*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderNamespaceUri (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1710*7c568831SAndroid Build Coastguard Worker</pre> 1711*7c568831SAndroid Build Coastguard Worker<p>The URI defining the namespace associated with the node.</p> 1712*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1713*7c568831SAndroid Build Coastguard Worker<col align="left"> 1714*7c568831SAndroid Build Coastguard Worker<tbody> 1715*7c568831SAndroid Build Coastguard Worker<tr> 1716*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1717*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1718*7c568831SAndroid Build Coastguard Worker</tr> 1719*7c568831SAndroid Build Coastguard Worker<tr> 1720*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1721*7c568831SAndroid Build Coastguard Worker<td>the namespace URI or NULL if not available, if non NULL it need to be freed by the caller.</td> 1722*7c568831SAndroid Build Coastguard Worker</tr> 1723*7c568831SAndroid Build Coastguard Worker</tbody> 1724*7c568831SAndroid Build Coastguard Worker</table></div> 1725*7c568831SAndroid Build Coastguard Worker</div> 1726*7c568831SAndroid Build Coastguard Worker<hr> 1727*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1728*7c568831SAndroid Build Coastguard Worker<h3> 1729*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderNext"></a>xmlTextReaderNext ()</h3> 1730*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderNext (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1731*7c568831SAndroid Build Coastguard Worker</pre> 1732*7c568831SAndroid Build Coastguard Worker<p>Skip to the node following the current one in document order while avoiding the subtree if any.</p> 1733*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1734*7c568831SAndroid Build Coastguard Worker<col align="left"> 1735*7c568831SAndroid Build Coastguard Worker<tbody> 1736*7c568831SAndroid Build Coastguard Worker<tr> 1737*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1738*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1739*7c568831SAndroid Build Coastguard Worker</tr> 1740*7c568831SAndroid Build Coastguard Worker<tr> 1741*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1742*7c568831SAndroid Build Coastguard Worker<td>1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error</td> 1743*7c568831SAndroid Build Coastguard Worker</tr> 1744*7c568831SAndroid Build Coastguard Worker</tbody> 1745*7c568831SAndroid Build Coastguard Worker</table></div> 1746*7c568831SAndroid Build Coastguard Worker</div> 1747*7c568831SAndroid Build Coastguard Worker<hr> 1748*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1749*7c568831SAndroid Build Coastguard Worker<h3> 1750*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderNextSibling"></a>xmlTextReaderNextSibling ()</h3> 1751*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderNextSibling (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1752*7c568831SAndroid Build Coastguard Worker</pre> 1753*7c568831SAndroid Build Coastguard Worker<p>Skip to the node following the current one in document order while avoiding the subtree if any. Currently implemented only for Readers built on a document</p> 1754*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1755*7c568831SAndroid Build Coastguard Worker<col align="left"> 1756*7c568831SAndroid Build Coastguard Worker<tbody> 1757*7c568831SAndroid Build Coastguard Worker<tr> 1758*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1759*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1760*7c568831SAndroid Build Coastguard Worker</tr> 1761*7c568831SAndroid Build Coastguard Worker<tr> 1762*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1763*7c568831SAndroid Build Coastguard Worker<td>1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error</td> 1764*7c568831SAndroid Build Coastguard Worker</tr> 1765*7c568831SAndroid Build Coastguard Worker</tbody> 1766*7c568831SAndroid Build Coastguard Worker</table></div> 1767*7c568831SAndroid Build Coastguard Worker</div> 1768*7c568831SAndroid Build Coastguard Worker<hr> 1769*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1770*7c568831SAndroid Build Coastguard Worker<h3> 1771*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderNodeType"></a>xmlTextReaderNodeType ()</h3> 1772*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderNodeType (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1773*7c568831SAndroid Build Coastguard Worker</pre> 1774*7c568831SAndroid Build Coastguard Worker<p>Get the node type of the current node Reference: http://www.gnu.org/software/dotgnu/pnetlib-doc/System/Xml/XmlNodeType.html</p> 1775*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1776*7c568831SAndroid Build Coastguard Worker<col align="left"> 1777*7c568831SAndroid Build Coastguard Worker<tbody> 1778*7c568831SAndroid Build Coastguard Worker<tr> 1779*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1780*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1781*7c568831SAndroid Build Coastguard Worker</tr> 1782*7c568831SAndroid Build Coastguard Worker<tr> 1783*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1784*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlReaderTypes">xmlReaderTypes</a> of the current node or -1 in case of error</td> 1785*7c568831SAndroid Build Coastguard Worker</tr> 1786*7c568831SAndroid Build Coastguard Worker</tbody> 1787*7c568831SAndroid Build Coastguard Worker</table></div> 1788*7c568831SAndroid Build Coastguard Worker</div> 1789*7c568831SAndroid Build Coastguard Worker<hr> 1790*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1791*7c568831SAndroid Build Coastguard Worker<h3> 1792*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderNormalization"></a>xmlTextReaderNormalization ()</h3> 1793*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderNormalization (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1794*7c568831SAndroid Build Coastguard Worker</pre> 1795*7c568831SAndroid Build Coastguard Worker<p>The value indicating whether to normalize white space and <a href="libxml2-SAX.html#attribute">attribute</a> values. Since <a href="libxml2-SAX.html#attribute">attribute</a> value and end of line normalizations are a MUST in the XML specification only the value true is accepted. The broken behaviour of accepting out of range character entities like &#0; is of course not supported either.</p> 1796*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1797*7c568831SAndroid Build Coastguard Worker<col align="left"> 1798*7c568831SAndroid Build Coastguard Worker<tbody> 1799*7c568831SAndroid Build Coastguard Worker<tr> 1800*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1801*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1802*7c568831SAndroid Build Coastguard Worker</tr> 1803*7c568831SAndroid Build Coastguard Worker<tr> 1804*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1805*7c568831SAndroid Build Coastguard Worker<td>1 or -1 in case of error.</td> 1806*7c568831SAndroid Build Coastguard Worker</tr> 1807*7c568831SAndroid Build Coastguard Worker</tbody> 1808*7c568831SAndroid Build Coastguard Worker</table></div> 1809*7c568831SAndroid Build Coastguard Worker</div> 1810*7c568831SAndroid Build Coastguard Worker<hr> 1811*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1812*7c568831SAndroid Build Coastguard Worker<h3> 1813*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderPrefix"></a>xmlTextReaderPrefix ()</h3> 1814*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderPrefix (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1815*7c568831SAndroid Build Coastguard Worker</pre> 1816*7c568831SAndroid Build Coastguard Worker<p>A shorthand <a href="libxml2-SAX.html#reference">reference</a> to the namespace associated with the node.</p> 1817*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1818*7c568831SAndroid Build Coastguard Worker<col align="left"> 1819*7c568831SAndroid Build Coastguard Worker<tbody> 1820*7c568831SAndroid Build Coastguard Worker<tr> 1821*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1822*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1823*7c568831SAndroid Build Coastguard Worker</tr> 1824*7c568831SAndroid Build Coastguard Worker<tr> 1825*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1826*7c568831SAndroid Build Coastguard Worker<td>the prefix or NULL if not available, if non NULL it need to be freed by the caller.</td> 1827*7c568831SAndroid Build Coastguard Worker</tr> 1828*7c568831SAndroid Build Coastguard Worker</tbody> 1829*7c568831SAndroid Build Coastguard Worker</table></div> 1830*7c568831SAndroid Build Coastguard Worker</div> 1831*7c568831SAndroid Build Coastguard Worker<hr> 1832*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1833*7c568831SAndroid Build Coastguard Worker<h3> 1834*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderPreserve"></a>xmlTextReaderPreserve ()</h3> 1835*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> xmlTextReaderPreserve (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1836*7c568831SAndroid Build Coastguard Worker</pre> 1837*7c568831SAndroid Build Coastguard Worker<p>This tells the XML Reader to preserve the current node. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished</p> 1838*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1839*7c568831SAndroid Build Coastguard Worker<col align="left"> 1840*7c568831SAndroid Build Coastguard Worker<tbody> 1841*7c568831SAndroid Build Coastguard Worker<tr> 1842*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1843*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1844*7c568831SAndroid Build Coastguard Worker</tr> 1845*7c568831SAndroid Build Coastguard Worker<tr> 1846*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1847*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-tree.html#xmlNodePtr">xmlNodePtr</a> or NULL in case of error.</td> 1848*7c568831SAndroid Build Coastguard Worker</tr> 1849*7c568831SAndroid Build Coastguard Worker</tbody> 1850*7c568831SAndroid Build Coastguard Worker</table></div> 1851*7c568831SAndroid Build Coastguard Worker</div> 1852*7c568831SAndroid Build Coastguard Worker<hr> 1853*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1854*7c568831SAndroid Build Coastguard Worker<h3> 1855*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderPreservePattern"></a>xmlTextReaderPreservePattern ()</h3> 1856*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderPreservePattern (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * pattern, <br> const <a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> ** namespaces)<br> 1857*7c568831SAndroid Build Coastguard Worker</pre> 1858*7c568831SAndroid Build Coastguard Worker<p>This tells the XML Reader to preserve all nodes matched by the pattern. The caller must also use xmlTextReaderCurrentDoc() to keep an handle on the resulting document once parsing has finished</p> 1859*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1860*7c568831SAndroid Build Coastguard Worker<col align="left"> 1861*7c568831SAndroid Build Coastguard Worker<tbody> 1862*7c568831SAndroid Build Coastguard Worker<tr> 1863*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1864*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1865*7c568831SAndroid Build Coastguard Worker</tr> 1866*7c568831SAndroid Build Coastguard Worker<tr> 1867*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>pattern</tt></i>:</span></td> 1868*7c568831SAndroid Build Coastguard Worker<td>an XPath subset pattern</td> 1869*7c568831SAndroid Build Coastguard Worker</tr> 1870*7c568831SAndroid Build Coastguard Worker<tr> 1871*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>namespaces</tt></i>:</span></td> 1872*7c568831SAndroid Build Coastguard Worker<td>the prefix definitions, array of [URI, prefix] or NULL</td> 1873*7c568831SAndroid Build Coastguard Worker</tr> 1874*7c568831SAndroid Build Coastguard Worker<tr> 1875*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1876*7c568831SAndroid Build Coastguard Worker<td>a non-negative number in case of success and -1 in case of error</td> 1877*7c568831SAndroid Build Coastguard Worker</tr> 1878*7c568831SAndroid Build Coastguard Worker</tbody> 1879*7c568831SAndroid Build Coastguard Worker</table></div> 1880*7c568831SAndroid Build Coastguard Worker</div> 1881*7c568831SAndroid Build Coastguard Worker<hr> 1882*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1883*7c568831SAndroid Build Coastguard Worker<h3> 1884*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderQuoteChar"></a>xmlTextReaderQuoteChar ()</h3> 1885*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderQuoteChar (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1886*7c568831SAndroid Build Coastguard Worker</pre> 1887*7c568831SAndroid Build Coastguard Worker<p>The quotation mark character used to enclose the value of an <a href="libxml2-SAX.html#attribute">attribute</a>.</p> 1888*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1889*7c568831SAndroid Build Coastguard Worker<col align="left"> 1890*7c568831SAndroid Build Coastguard Worker<tbody> 1891*7c568831SAndroid Build Coastguard Worker<tr> 1892*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1893*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1894*7c568831SAndroid Build Coastguard Worker</tr> 1895*7c568831SAndroid Build Coastguard Worker<tr> 1896*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1897*7c568831SAndroid Build Coastguard Worker<td>" or ' and -1 in case of error</td> 1898*7c568831SAndroid Build Coastguard Worker</tr> 1899*7c568831SAndroid Build Coastguard Worker</tbody> 1900*7c568831SAndroid Build Coastguard Worker</table></div> 1901*7c568831SAndroid Build Coastguard Worker</div> 1902*7c568831SAndroid Build Coastguard Worker<hr> 1903*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1904*7c568831SAndroid Build Coastguard Worker<h3> 1905*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderRead"></a>xmlTextReaderRead ()</h3> 1906*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderRead (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1907*7c568831SAndroid Build Coastguard Worker</pre> 1908*7c568831SAndroid Build Coastguard Worker<p>Moves the position of the current instance to the next node in the stream, exposing its properties.</p> 1909*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1910*7c568831SAndroid Build Coastguard Worker<col align="left"> 1911*7c568831SAndroid Build Coastguard Worker<tbody> 1912*7c568831SAndroid Build Coastguard Worker<tr> 1913*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1914*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1915*7c568831SAndroid Build Coastguard Worker</tr> 1916*7c568831SAndroid Build Coastguard Worker<tr> 1917*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1918*7c568831SAndroid Build Coastguard Worker<td>1 if the node was read successfully, 0 if there is no more nodes to read, or -1 in case of error</td> 1919*7c568831SAndroid Build Coastguard Worker</tr> 1920*7c568831SAndroid Build Coastguard Worker</tbody> 1921*7c568831SAndroid Build Coastguard Worker</table></div> 1922*7c568831SAndroid Build Coastguard Worker</div> 1923*7c568831SAndroid Build Coastguard Worker<hr> 1924*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1925*7c568831SAndroid Build Coastguard Worker<h3> 1926*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderReadAttributeValue"></a>xmlTextReaderReadAttributeValue ()</h3> 1927*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderReadAttributeValue (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1928*7c568831SAndroid Build Coastguard Worker</pre> 1929*7c568831SAndroid Build Coastguard Worker<p>Parses an <a href="libxml2-SAX.html#attribute">attribute</a> value into one or more Text and EntityReference nodes.</p> 1930*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1931*7c568831SAndroid Build Coastguard Worker<col align="left"> 1932*7c568831SAndroid Build Coastguard Worker<tbody> 1933*7c568831SAndroid Build Coastguard Worker<tr> 1934*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1935*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1936*7c568831SAndroid Build Coastguard Worker</tr> 1937*7c568831SAndroid Build Coastguard Worker<tr> 1938*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1939*7c568831SAndroid Build Coastguard Worker<td>1 in case of success, 0 if the reader was not positioned on an <a href="libxml2-SAX.html#attribute">attribute</a> node or all the <a href="libxml2-SAX.html#attribute">attribute</a> values have been read, or -1 in case of error.</td> 1940*7c568831SAndroid Build Coastguard Worker</tr> 1941*7c568831SAndroid Build Coastguard Worker</tbody> 1942*7c568831SAndroid Build Coastguard Worker</table></div> 1943*7c568831SAndroid Build Coastguard Worker</div> 1944*7c568831SAndroid Build Coastguard Worker<hr> 1945*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1946*7c568831SAndroid Build Coastguard Worker<h3> 1947*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderReadInnerXml"></a>xmlTextReaderReadInnerXml ()</h3> 1948*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderReadInnerXml (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1949*7c568831SAndroid Build Coastguard Worker</pre> 1950*7c568831SAndroid Build Coastguard Worker<p>Reads the contents of the current node, including child nodes and markup.</p> 1951*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1952*7c568831SAndroid Build Coastguard Worker<col align="left"> 1953*7c568831SAndroid Build Coastguard Worker<tbody> 1954*7c568831SAndroid Build Coastguard Worker<tr> 1955*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1956*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1957*7c568831SAndroid Build Coastguard Worker</tr> 1958*7c568831SAndroid Build Coastguard Worker<tr> 1959*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1960*7c568831SAndroid Build Coastguard Worker<td>a string containing the XML content, or NULL if the current node is neither an element nor attribute, or has no child nodes. The string must be deallocated by the caller.</td> 1961*7c568831SAndroid Build Coastguard Worker</tr> 1962*7c568831SAndroid Build Coastguard Worker</tbody> 1963*7c568831SAndroid Build Coastguard Worker</table></div> 1964*7c568831SAndroid Build Coastguard Worker</div> 1965*7c568831SAndroid Build Coastguard Worker<hr> 1966*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1967*7c568831SAndroid Build Coastguard Worker<h3> 1968*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderReadOuterXml"></a>xmlTextReaderReadOuterXml ()</h3> 1969*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderReadOuterXml (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1970*7c568831SAndroid Build Coastguard Worker</pre> 1971*7c568831SAndroid Build Coastguard Worker<p>Reads the contents of the current node, including child nodes and markup.</p> 1972*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1973*7c568831SAndroid Build Coastguard Worker<col align="left"> 1974*7c568831SAndroid Build Coastguard Worker<tbody> 1975*7c568831SAndroid Build Coastguard Worker<tr> 1976*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1977*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1978*7c568831SAndroid Build Coastguard Worker</tr> 1979*7c568831SAndroid Build Coastguard Worker<tr> 1980*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 1981*7c568831SAndroid Build Coastguard Worker<td>a string containing the node and any XML content, or NULL if the current node cannot be serialized. The string must be deallocated by the caller.</td> 1982*7c568831SAndroid Build Coastguard Worker</tr> 1983*7c568831SAndroid Build Coastguard Worker</tbody> 1984*7c568831SAndroid Build Coastguard Worker</table></div> 1985*7c568831SAndroid Build Coastguard Worker</div> 1986*7c568831SAndroid Build Coastguard Worker<hr> 1987*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 1988*7c568831SAndroid Build Coastguard Worker<h3> 1989*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderReadState"></a>xmlTextReaderReadState ()</h3> 1990*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderReadState (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 1991*7c568831SAndroid Build Coastguard Worker</pre> 1992*7c568831SAndroid Build Coastguard Worker<p>Gets the read state of the reader.</p> 1993*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 1994*7c568831SAndroid Build Coastguard Worker<col align="left"> 1995*7c568831SAndroid Build Coastguard Worker<tbody> 1996*7c568831SAndroid Build Coastguard Worker<tr> 1997*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 1998*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 1999*7c568831SAndroid Build Coastguard Worker</tr> 2000*7c568831SAndroid Build Coastguard Worker<tr> 2001*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2002*7c568831SAndroid Build Coastguard Worker<td>the state value, or -1 in case of error</td> 2003*7c568831SAndroid Build Coastguard Worker</tr> 2004*7c568831SAndroid Build Coastguard Worker</tbody> 2005*7c568831SAndroid Build Coastguard Worker</table></div> 2006*7c568831SAndroid Build Coastguard Worker</div> 2007*7c568831SAndroid Build Coastguard Worker<hr> 2008*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2009*7c568831SAndroid Build Coastguard Worker<h3> 2010*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderReadString"></a>xmlTextReaderReadString ()</h3> 2011*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderReadString (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 2012*7c568831SAndroid Build Coastguard Worker</pre> 2013*7c568831SAndroid Build Coastguard Worker<p>Reads the contents of an element or a text node as a string.</p> 2014*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2015*7c568831SAndroid Build Coastguard Worker<col align="left"> 2016*7c568831SAndroid Build Coastguard Worker<tbody> 2017*7c568831SAndroid Build Coastguard Worker<tr> 2018*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2019*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2020*7c568831SAndroid Build Coastguard Worker</tr> 2021*7c568831SAndroid Build Coastguard Worker<tr> 2022*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2023*7c568831SAndroid Build Coastguard Worker<td>a string containing the contents of the Element or Text node, or NULL if the reader is positioned on any other type of node. The string must be deallocated by the caller.</td> 2024*7c568831SAndroid Build Coastguard Worker</tr> 2025*7c568831SAndroid Build Coastguard Worker</tbody> 2026*7c568831SAndroid Build Coastguard Worker</table></div> 2027*7c568831SAndroid Build Coastguard Worker</div> 2028*7c568831SAndroid Build Coastguard Worker<hr> 2029*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2030*7c568831SAndroid Build Coastguard Worker<h3> 2031*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderRelaxNGSetSchema"></a>xmlTextReaderRelaxNGSetSchema ()</h3> 2032*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderRelaxNGSetSchema (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-relaxng.html#xmlRelaxNGPtr">xmlRelaxNGPtr</a> schema)<br> 2033*7c568831SAndroid Build Coastguard Worker</pre> 2034*7c568831SAndroid Build Coastguard Worker<p>Use RelaxNG to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then RelaxNG validation is deactivated. @ The @schema should not be freed until the reader is deallocated or its use has been deactivated.</p> 2035*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2036*7c568831SAndroid Build Coastguard Worker<col align="left"> 2037*7c568831SAndroid Build Coastguard Worker<tbody> 2038*7c568831SAndroid Build Coastguard Worker<tr> 2039*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2040*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2041*7c568831SAndroid Build Coastguard Worker</tr> 2042*7c568831SAndroid Build Coastguard Worker<tr> 2043*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>schema</tt></i>:</span></td> 2044*7c568831SAndroid Build Coastguard Worker<td>a precompiled RelaxNG schema</td> 2045*7c568831SAndroid Build Coastguard Worker</tr> 2046*7c568831SAndroid Build Coastguard Worker<tr> 2047*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2048*7c568831SAndroid Build Coastguard Worker<td>0 in case the RelaxNG validation could be (de)activated and -1 in case of error.</td> 2049*7c568831SAndroid Build Coastguard Worker</tr> 2050*7c568831SAndroid Build Coastguard Worker</tbody> 2051*7c568831SAndroid Build Coastguard Worker</table></div> 2052*7c568831SAndroid Build Coastguard Worker</div> 2053*7c568831SAndroid Build Coastguard Worker<hr> 2054*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2055*7c568831SAndroid Build Coastguard Worker<h3> 2056*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderRelaxNGValidate"></a>xmlTextReaderRelaxNGValidate ()</h3> 2057*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderRelaxNGValidate (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * rng)<br> 2058*7c568831SAndroid Build Coastguard Worker</pre> 2059*7c568831SAndroid Build Coastguard Worker<p>Use RelaxNG schema to validate the document as it is processed. Activation is only possible before the first Read(). If @rng is NULL, then RelaxNG schema validation is deactivated.</p> 2060*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2061*7c568831SAndroid Build Coastguard Worker<col align="left"> 2062*7c568831SAndroid Build Coastguard Worker<tbody> 2063*7c568831SAndroid Build Coastguard Worker<tr> 2064*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2065*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2066*7c568831SAndroid Build Coastguard Worker</tr> 2067*7c568831SAndroid Build Coastguard Worker<tr> 2068*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>rng</tt></i>:</span></td> 2069*7c568831SAndroid Build Coastguard Worker<td>the path to a RelaxNG schema or NULL</td> 2070*7c568831SAndroid Build Coastguard Worker</tr> 2071*7c568831SAndroid Build Coastguard Worker<tr> 2072*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2073*7c568831SAndroid Build Coastguard Worker<td>0 in case the schemas validation could be (de)activated and -1 in case of error.</td> 2074*7c568831SAndroid Build Coastguard Worker</tr> 2075*7c568831SAndroid Build Coastguard Worker</tbody> 2076*7c568831SAndroid Build Coastguard Worker</table></div> 2077*7c568831SAndroid Build Coastguard Worker</div> 2078*7c568831SAndroid Build Coastguard Worker<hr> 2079*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2080*7c568831SAndroid Build Coastguard Worker<h3> 2081*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderRelaxNGValidateCtxt"></a>xmlTextReaderRelaxNGValidateCtxt ()</h3> 2082*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderRelaxNGValidateCtxt (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-relaxng.html#xmlRelaxNGValidCtxtPtr">xmlRelaxNGValidCtxtPtr</a> ctxt, <br> int options)<br> 2083*7c568831SAndroid Build Coastguard Worker</pre> 2084*7c568831SAndroid Build Coastguard Worker<p>Use RelaxNG schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then RelaxNG schema validation is deactivated.</p> 2085*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2086*7c568831SAndroid Build Coastguard Worker<col align="left"> 2087*7c568831SAndroid Build Coastguard Worker<tbody> 2088*7c568831SAndroid Build Coastguard Worker<tr> 2089*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2090*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2091*7c568831SAndroid Build Coastguard Worker</tr> 2092*7c568831SAndroid Build Coastguard Worker<tr> 2093*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 2094*7c568831SAndroid Build Coastguard Worker<td>the RelaxNG schema validation context or NULL</td> 2095*7c568831SAndroid Build Coastguard Worker</tr> 2096*7c568831SAndroid Build Coastguard Worker<tr> 2097*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 2098*7c568831SAndroid Build Coastguard Worker<td>options (not used yet)</td> 2099*7c568831SAndroid Build Coastguard Worker</tr> 2100*7c568831SAndroid Build Coastguard Worker<tr> 2101*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2102*7c568831SAndroid Build Coastguard Worker<td>0 in case the schemas validation could be (de)activated and -1 in case of error.</td> 2103*7c568831SAndroid Build Coastguard Worker</tr> 2104*7c568831SAndroid Build Coastguard Worker</tbody> 2105*7c568831SAndroid Build Coastguard Worker</table></div> 2106*7c568831SAndroid Build Coastguard Worker</div> 2107*7c568831SAndroid Build Coastguard Worker<hr> 2108*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2109*7c568831SAndroid Build Coastguard Worker<h3> 2110*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSchemaValidate"></a>xmlTextReaderSchemaValidate ()</h3> 2111*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderSchemaValidate (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> const char * xsd)<br> 2112*7c568831SAndroid Build Coastguard Worker</pre> 2113*7c568831SAndroid Build Coastguard Worker<p>Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first Read(). If @xsd is NULL, then XML Schema validation is deactivated.</p> 2114*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2115*7c568831SAndroid Build Coastguard Worker<col align="left"> 2116*7c568831SAndroid Build Coastguard Worker<tbody> 2117*7c568831SAndroid Build Coastguard Worker<tr> 2118*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2119*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2120*7c568831SAndroid Build Coastguard Worker</tr> 2121*7c568831SAndroid Build Coastguard Worker<tr> 2122*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>xsd</tt></i>:</span></td> 2123*7c568831SAndroid Build Coastguard Worker<td>the path to a W3C XSD schema or NULL</td> 2124*7c568831SAndroid Build Coastguard Worker</tr> 2125*7c568831SAndroid Build Coastguard Worker<tr> 2126*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2127*7c568831SAndroid Build Coastguard Worker<td>0 in case the schemas validation could be (de)activated and -1 in case of error.</td> 2128*7c568831SAndroid Build Coastguard Worker</tr> 2129*7c568831SAndroid Build Coastguard Worker</tbody> 2130*7c568831SAndroid Build Coastguard Worker</table></div> 2131*7c568831SAndroid Build Coastguard Worker</div> 2132*7c568831SAndroid Build Coastguard Worker<hr> 2133*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2134*7c568831SAndroid Build Coastguard Worker<h3> 2135*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSchemaValidateCtxt"></a>xmlTextReaderSchemaValidateCtxt ()</h3> 2136*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderSchemaValidateCtxt (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlschemas.html#xmlSchemaValidCtxtPtr">xmlSchemaValidCtxtPtr</a> ctxt, <br> int options)<br> 2137*7c568831SAndroid Build Coastguard Worker</pre> 2138*7c568831SAndroid Build Coastguard Worker<p>Use W3C XSD schema context to validate the document as it is processed. Activation is only possible before the first Read(). If @ctxt is NULL, then XML Schema validation is deactivated.</p> 2139*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2140*7c568831SAndroid Build Coastguard Worker<col align="left"> 2141*7c568831SAndroid Build Coastguard Worker<tbody> 2142*7c568831SAndroid Build Coastguard Worker<tr> 2143*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2144*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2145*7c568831SAndroid Build Coastguard Worker</tr> 2146*7c568831SAndroid Build Coastguard Worker<tr> 2147*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>ctxt</tt></i>:</span></td> 2148*7c568831SAndroid Build Coastguard Worker<td>the XML Schema validation context or NULL</td> 2149*7c568831SAndroid Build Coastguard Worker</tr> 2150*7c568831SAndroid Build Coastguard Worker<tr> 2151*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 2152*7c568831SAndroid Build Coastguard Worker<td>options (not used yet)</td> 2153*7c568831SAndroid Build Coastguard Worker</tr> 2154*7c568831SAndroid Build Coastguard Worker<tr> 2155*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2156*7c568831SAndroid Build Coastguard Worker<td>0 in case the schemas validation could be (de)activated and -1 in case of error.</td> 2157*7c568831SAndroid Build Coastguard Worker</tr> 2158*7c568831SAndroid Build Coastguard Worker</tbody> 2159*7c568831SAndroid Build Coastguard Worker</table></div> 2160*7c568831SAndroid Build Coastguard Worker</div> 2161*7c568831SAndroid Build Coastguard Worker<hr> 2162*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2163*7c568831SAndroid Build Coastguard Worker<h3> 2164*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetErrorHandler"></a>xmlTextReaderSetErrorHandler ()</h3> 2165*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlTextReaderSetErrorHandler (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlreader.html#xmlTextReaderErrorFunc">xmlTextReaderErrorFunc</a> f, <br> void * arg)<br> 2166*7c568831SAndroid Build Coastguard Worker</pre> 2167*7c568831SAndroid Build Coastguard Worker<p>DEPRECATED: Use <a href="libxml2-xmlreader.html#xmlTextReaderSetStructuredErrorHandler">xmlTextReaderSetStructuredErrorHandler</a>. Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.</p> 2168*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2169*7c568831SAndroid Build Coastguard Worker<col align="left"> 2170*7c568831SAndroid Build Coastguard Worker<tbody> 2171*7c568831SAndroid Build Coastguard Worker<tr> 2172*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2173*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2174*7c568831SAndroid Build Coastguard Worker</tr> 2175*7c568831SAndroid Build Coastguard Worker<tr> 2176*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>f</tt></i>:</span></td> 2177*7c568831SAndroid Build Coastguard Worker<td>the callback function to call on error and warnings</td> 2178*7c568831SAndroid Build Coastguard Worker</tr> 2179*7c568831SAndroid Build Coastguard Worker<tr> 2180*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>arg</tt></i>:</span></td> 2181*7c568831SAndroid Build Coastguard Worker<td>a user argument to pass to the callback function</td> 2182*7c568831SAndroid Build Coastguard Worker</tr> 2183*7c568831SAndroid Build Coastguard Worker</tbody> 2184*7c568831SAndroid Build Coastguard Worker</table></div> 2185*7c568831SAndroid Build Coastguard Worker</div> 2186*7c568831SAndroid Build Coastguard Worker<hr> 2187*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2188*7c568831SAndroid Build Coastguard Worker<h3> 2189*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetMaxAmplification"></a>xmlTextReaderSetMaxAmplification ()</h3> 2190*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlTextReaderSetMaxAmplification (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> unsigned maxAmpl)<br> 2191*7c568831SAndroid Build Coastguard Worker</pre> 2192*7c568831SAndroid Build Coastguard Worker<p>Set the maximum amplification factor. See <a href="libxml2-parser.html#xmlCtxtSetMaxAmplification">xmlCtxtSetMaxAmplification</a>.</p> 2193*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2194*7c568831SAndroid Build Coastguard Worker<col align="left"> 2195*7c568831SAndroid Build Coastguard Worker<tbody> 2196*7c568831SAndroid Build Coastguard Worker<tr> 2197*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2198*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 2199*7c568831SAndroid Build Coastguard Worker</tr> 2200*7c568831SAndroid Build Coastguard Worker<tr> 2201*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>maxAmpl</tt></i>:</span></td> 2202*7c568831SAndroid Build Coastguard Worker<td>maximum amplification factor</td> 2203*7c568831SAndroid Build Coastguard Worker</tr> 2204*7c568831SAndroid Build Coastguard Worker</tbody> 2205*7c568831SAndroid Build Coastguard Worker</table></div> 2206*7c568831SAndroid Build Coastguard Worker</div> 2207*7c568831SAndroid Build Coastguard Worker<hr> 2208*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2209*7c568831SAndroid Build Coastguard Worker<h3> 2210*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetParserProp"></a>xmlTextReaderSetParserProp ()</h3> 2211*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderSetParserProp (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> int prop, <br> int value)<br> 2212*7c568831SAndroid Build Coastguard Worker</pre> 2213*7c568831SAndroid Build Coastguard Worker<p>Change the parser processing behaviour by changing some of its internal properties. Note that some properties can only be changed before any read has been done.</p> 2214*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2215*7c568831SAndroid Build Coastguard Worker<col align="left"> 2216*7c568831SAndroid Build Coastguard Worker<tbody> 2217*7c568831SAndroid Build Coastguard Worker<tr> 2218*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2219*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2220*7c568831SAndroid Build Coastguard Worker</tr> 2221*7c568831SAndroid Build Coastguard Worker<tr> 2222*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>prop</tt></i>:</span></td> 2223*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlParserProperties">xmlParserProperties</a> to set</td> 2224*7c568831SAndroid Build Coastguard Worker</tr> 2225*7c568831SAndroid Build Coastguard Worker<tr> 2226*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>value</tt></i>:</span></td> 2227*7c568831SAndroid Build Coastguard Worker<td>usually 0 or 1 to (de)activate it</td> 2228*7c568831SAndroid Build Coastguard Worker</tr> 2229*7c568831SAndroid Build Coastguard Worker<tr> 2230*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2231*7c568831SAndroid Build Coastguard Worker<td>0 if the call was successful, or -1 in case of error</td> 2232*7c568831SAndroid Build Coastguard Worker</tr> 2233*7c568831SAndroid Build Coastguard Worker</tbody> 2234*7c568831SAndroid Build Coastguard Worker</table></div> 2235*7c568831SAndroid Build Coastguard Worker</div> 2236*7c568831SAndroid Build Coastguard Worker<hr> 2237*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2238*7c568831SAndroid Build Coastguard Worker<h3> 2239*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetSchema"></a>xmlTextReaderSetSchema ()</h3> 2240*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderSetSchema (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlschemas.html#xmlSchemaPtr">xmlSchemaPtr</a> schema)<br> 2241*7c568831SAndroid Build Coastguard Worker</pre> 2242*7c568831SAndroid Build Coastguard Worker<p>Use XSD Schema to validate the document as it is processed. Activation is only possible before the first Read(). if @schema is NULL, then Schema validation is deactivated. The @schema should not be freed until the reader is deallocated or its use has been deactivated.</p> 2243*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2244*7c568831SAndroid Build Coastguard Worker<col align="left"> 2245*7c568831SAndroid Build Coastguard Worker<tbody> 2246*7c568831SAndroid Build Coastguard Worker<tr> 2247*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2248*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2249*7c568831SAndroid Build Coastguard Worker</tr> 2250*7c568831SAndroid Build Coastguard Worker<tr> 2251*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>schema</tt></i>:</span></td> 2252*7c568831SAndroid Build Coastguard Worker<td>a precompiled Schema schema</td> 2253*7c568831SAndroid Build Coastguard Worker</tr> 2254*7c568831SAndroid Build Coastguard Worker<tr> 2255*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2256*7c568831SAndroid Build Coastguard Worker<td>0 in case the Schema validation could be (de)activated and -1 in case of error.</td> 2257*7c568831SAndroid Build Coastguard Worker</tr> 2258*7c568831SAndroid Build Coastguard Worker</tbody> 2259*7c568831SAndroid Build Coastguard Worker</table></div> 2260*7c568831SAndroid Build Coastguard Worker</div> 2261*7c568831SAndroid Build Coastguard Worker<hr> 2262*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2263*7c568831SAndroid Build Coastguard Worker<h3> 2264*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetStructuredErrorHandler"></a>xmlTextReaderSetStructuredErrorHandler ()</h3> 2265*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">void xmlTextReaderSetStructuredErrorHandler (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-xmlerror.html#xmlStructuredErrorFunc">xmlStructuredErrorFunc</a> f, <br> void * arg)<br> 2266*7c568831SAndroid Build Coastguard Worker</pre> 2267*7c568831SAndroid Build Coastguard Worker<p>Register a callback function that will be called on error and warnings. If @f is NULL, the default error and warning handlers are restored.</p> 2268*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2269*7c568831SAndroid Build Coastguard Worker<col align="left"> 2270*7c568831SAndroid Build Coastguard Worker<tbody> 2271*7c568831SAndroid Build Coastguard Worker<tr> 2272*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2273*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2274*7c568831SAndroid Build Coastguard Worker</tr> 2275*7c568831SAndroid Build Coastguard Worker<tr> 2276*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>f</tt></i>:</span></td> 2277*7c568831SAndroid Build Coastguard Worker<td>the callback function to call on error and warnings</td> 2278*7c568831SAndroid Build Coastguard Worker</tr> 2279*7c568831SAndroid Build Coastguard Worker<tr> 2280*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>arg</tt></i>:</span></td> 2281*7c568831SAndroid Build Coastguard Worker<td>a user argument to pass to the callback function</td> 2282*7c568831SAndroid Build Coastguard Worker</tr> 2283*7c568831SAndroid Build Coastguard Worker</tbody> 2284*7c568831SAndroid Build Coastguard Worker</table></div> 2285*7c568831SAndroid Build Coastguard Worker</div> 2286*7c568831SAndroid Build Coastguard Worker<hr> 2287*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2288*7c568831SAndroid Build Coastguard Worker<h3> 2289*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderSetup"></a>xmlTextReaderSetup ()</h3> 2290*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderSetup (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader, <br> <a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> input, <br> const char * URL, <br> const char * encoding, <br> int options)<br> 2291*7c568831SAndroid Build Coastguard Worker</pre> 2292*7c568831SAndroid Build Coastguard Worker<p>Setup an XML reader with new options</p> 2293*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2294*7c568831SAndroid Build Coastguard Worker<col align="left"> 2295*7c568831SAndroid Build Coastguard Worker<tbody> 2296*7c568831SAndroid Build Coastguard Worker<tr> 2297*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2298*7c568831SAndroid Build Coastguard Worker<td>an XML reader</td> 2299*7c568831SAndroid Build Coastguard Worker</tr> 2300*7c568831SAndroid Build Coastguard Worker<tr> 2301*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>input</tt></i>:</span></td> 2302*7c568831SAndroid Build Coastguard Worker<td> 2303*7c568831SAndroid Build Coastguard Worker<a href="libxml2-tree.html#xmlParserInputBufferPtr">xmlParserInputBufferPtr</a> used to feed the reader, will be destroyed with it.</td> 2304*7c568831SAndroid Build Coastguard Worker</tr> 2305*7c568831SAndroid Build Coastguard Worker<tr> 2306*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>URL</tt></i>:</span></td> 2307*7c568831SAndroid Build Coastguard Worker<td>the base URL to use for the document</td> 2308*7c568831SAndroid Build Coastguard Worker</tr> 2309*7c568831SAndroid Build Coastguard Worker<tr> 2310*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>encoding</tt></i>:</span></td> 2311*7c568831SAndroid Build Coastguard Worker<td>the document encoding, or NULL</td> 2312*7c568831SAndroid Build Coastguard Worker</tr> 2313*7c568831SAndroid Build Coastguard Worker<tr> 2314*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>options</tt></i>:</span></td> 2315*7c568831SAndroid Build Coastguard Worker<td>a combination of <a href="libxml2-parser.html#xmlParserOption">xmlParserOption</a> 2316*7c568831SAndroid Build Coastguard Worker</td> 2317*7c568831SAndroid Build Coastguard Worker</tr> 2318*7c568831SAndroid Build Coastguard Worker<tr> 2319*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2320*7c568831SAndroid Build Coastguard Worker<td>0 in case of success and -1 in case of error.</td> 2321*7c568831SAndroid Build Coastguard Worker</tr> 2322*7c568831SAndroid Build Coastguard Worker</tbody> 2323*7c568831SAndroid Build Coastguard Worker</table></div> 2324*7c568831SAndroid Build Coastguard Worker</div> 2325*7c568831SAndroid Build Coastguard Worker<hr> 2326*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2327*7c568831SAndroid Build Coastguard Worker<h3> 2328*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderStandalone"></a>xmlTextReaderStandalone ()</h3> 2329*7c568831SAndroid Build Coastguard Worker<pre class="programlisting">int xmlTextReaderStandalone (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 2330*7c568831SAndroid Build Coastguard Worker</pre> 2331*7c568831SAndroid Build Coastguard Worker<p>Determine the standalone status of the document being read.</p> 2332*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2333*7c568831SAndroid Build Coastguard Worker<col align="left"> 2334*7c568831SAndroid Build Coastguard Worker<tbody> 2335*7c568831SAndroid Build Coastguard Worker<tr> 2336*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2337*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2338*7c568831SAndroid Build Coastguard Worker</tr> 2339*7c568831SAndroid Build Coastguard Worker<tr> 2340*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2341*7c568831SAndroid Build Coastguard Worker<td>1 if the document was declared to be standalone, 0 if it was declared to be not standalone, or -1 if the document did not specify its standalone status or in case of error.</td> 2342*7c568831SAndroid Build Coastguard Worker</tr> 2343*7c568831SAndroid Build Coastguard Worker</tbody> 2344*7c568831SAndroid Build Coastguard Worker</table></div> 2345*7c568831SAndroid Build Coastguard Worker</div> 2346*7c568831SAndroid Build Coastguard Worker<hr> 2347*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2348*7c568831SAndroid Build Coastguard Worker<h3> 2349*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderValue"></a>xmlTextReaderValue ()</h3> 2350*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderValue (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 2351*7c568831SAndroid Build Coastguard Worker</pre> 2352*7c568831SAndroid Build Coastguard Worker<p>Provides the text value of the node if present</p> 2353*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2354*7c568831SAndroid Build Coastguard Worker<col align="left"> 2355*7c568831SAndroid Build Coastguard Worker<tbody> 2356*7c568831SAndroid Build Coastguard Worker<tr> 2357*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2358*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2359*7c568831SAndroid Build Coastguard Worker</tr> 2360*7c568831SAndroid Build Coastguard Worker<tr> 2361*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2362*7c568831SAndroid Build Coastguard Worker<td>the string or NULL if not available. The result must be deallocated with xmlFree()</td> 2363*7c568831SAndroid Build Coastguard Worker</tr> 2364*7c568831SAndroid Build Coastguard Worker</tbody> 2365*7c568831SAndroid Build Coastguard Worker</table></div> 2366*7c568831SAndroid Build Coastguard Worker</div> 2367*7c568831SAndroid Build Coastguard Worker<hr> 2368*7c568831SAndroid Build Coastguard Worker<div class="refsect2" lang="en"> 2369*7c568831SAndroid Build Coastguard Worker<h3> 2370*7c568831SAndroid Build Coastguard Worker<a name="xmlTextReaderXmlLang"></a>xmlTextReaderXmlLang ()</h3> 2371*7c568831SAndroid Build Coastguard Worker<pre class="programlisting"><a href="libxml2-xmlstring.html#xmlChar">xmlChar</a> * xmlTextReaderXmlLang (<a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> reader)<br> 2372*7c568831SAndroid Build Coastguard Worker</pre> 2373*7c568831SAndroid Build Coastguard Worker<p>The xml:lang scope within which the node resides.</p> 2374*7c568831SAndroid Build Coastguard Worker<div class="variablelist"><table border="0"> 2375*7c568831SAndroid Build Coastguard Worker<col align="left"> 2376*7c568831SAndroid Build Coastguard Worker<tbody> 2377*7c568831SAndroid Build Coastguard Worker<tr> 2378*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>reader</tt></i>:</span></td> 2379*7c568831SAndroid Build Coastguard Worker<td>the <a href="libxml2-xmlreader.html#xmlTextReaderPtr">xmlTextReaderPtr</a> used</td> 2380*7c568831SAndroid Build Coastguard Worker</tr> 2381*7c568831SAndroid Build Coastguard Worker<tr> 2382*7c568831SAndroid Build Coastguard Worker<td><span class="term"><i><tt>Returns</tt></i>:</span></td> 2383*7c568831SAndroid Build Coastguard Worker<td>the xml:lang value or NULL if none exists., if non NULL it need to be freed by the caller.</td> 2384*7c568831SAndroid Build Coastguard Worker</tr> 2385*7c568831SAndroid Build Coastguard Worker</tbody> 2386*7c568831SAndroid Build Coastguard Worker</table></div> 2387*7c568831SAndroid Build Coastguard Worker</div> 2388*7c568831SAndroid Build Coastguard Worker<hr> 2389*7c568831SAndroid Build Coastguard Worker</div> 2390*7c568831SAndroid Build Coastguard Worker</div> 2391*7c568831SAndroid Build Coastguard Worker</body> 2392*7c568831SAndroid Build Coastguard Worker</html> 2393