Lines Matching refs:doc
97 xmlDocPtr doc; /* when walking an existing doc */
208 if (id->doc != NULL)
209 dict = id->doc->dict;
218 * @doc: the document
226 xmlTextReaderRemoveID(xmlDocPtr doc, xmlAttrPtr attr) {
231 if (doc == NULL) return(-1);
233 table = (xmlIDTablePtr) doc->ids;
239 ID = xmlNodeListGetString(doc, attr->children, 1);
270 if ((cur->parent != NULL) && (cur->parent->doc != NULL) &&
271 ((cur->parent->doc->intSubset != NULL) ||
272 (cur->parent->doc->extSubset != NULL))) {
273 if (xmlIsID(cur->parent->doc, cur->parent, cur))
274 xmlTextReaderRemoveID(cur->parent->doc, cur);
1242 if (reader->doc != NULL)
1586 if (reader->doc != NULL)
1612 if (reader->doc != NULL)
1646 xmlDocPtr doc;
1651 doc = reader->doc;
1655 node = xmlDocCopyNode(cur_node, doc, 1);
1657 if (xmlNodeDump(buff2, doc, node, 0, 0) == -1) {
1692 xmlDocPtr doc;
1695 doc = reader->doc;
1699 node = xmlDocCopyNode(node, doc, 1);
1701 if (xmlNodeDump(buff, doc, node, 0, 0) == -1) {
1830 if (reader->doc->children == NULL) {
1835 reader->node = reader->doc->children;
1895 if (reader->doc->children == NULL) {
1900 reader->node = reader->doc->children;
1966 if (reader->doc == NULL) {
2013 ret->doc = NULL;
2295 ret = xmlNodeListGetString(reader->node->doc, cur->children, 1);
2359 ns = xmlSearchNs(reader->node->doc, reader->node, prefix);
2489 ns = xmlSearchNs(reader->node->doc, reader->node, prefix);
2827 reader->faketext = xmlNewDocText(reader->node->doc,
2856 xmlDocPtr doc = NULL;
2859 if (reader->doc != NULL)
2860 doc = reader->doc;
2862 doc = reader->ctxt->myDoc;
2863 if (doc == NULL)
2866 if (doc->encoding == NULL)
2869 return(CONSTSTR(doc->encoding));
2928 * http://dotgnu.org/pnetlib-doc/System/Xml/XmlNodeType.html
3016 if (reader->doc != NULL)
3500 (attr->parent->doc, attr->children, 1));
3950 if (reader->doc != NULL)
3951 return(reader->doc);
4439 xmlDocPtr doc = NULL;
4442 if (reader->doc != NULL)
4443 doc = reader->doc;
4445 doc = reader->ctxt->myDoc;
4446 if (doc == NULL)
4449 if (doc->version == NULL)
4452 return(CONSTSTR(doc->version));
4467 xmlDocPtr doc = NULL;
4470 if (reader->doc != NULL)
4471 doc = reader->doc;
4473 doc = reader->ctxt->myDoc;
4474 if (doc == NULL)
4477 return(doc->standalone);
4872 reader->doc = NULL;
5043 reader->doc = NULL;
5071 * @doc: a preparsed document
5078 xmlReaderWalker(xmlDocPtr doc)
5082 if (doc == NULL)
5100 ret->doc = doc;
5269 * @doc: a preparsed document
5277 xmlReaderNewWalker(xmlTextReaderPtr reader, xmlDocPtr doc)
5279 if (doc == NULL)
5299 reader->doc = doc;