Lines Matching defs:doc
338 #define CAN_PARSE_SCHEMA(b) (((b)->doc != NULL) && ((b)->parsed == 0))
406 xmlDocPtr doc;
437 xmlDocPtr doc; /* The schema node-tree. */
461 xmlDocPtr doc;
614 xmlDocPtr doc;
615 int preserve; /* Whether the doc should be freed */
980 xmlDocPtr doc;
2094 if (vctxt->doc != NULL)
2095 file = (const char *) vctxt->doc->URL;
3558 if ((! bucket->preserveDoc) && (bucket->doc != NULL)) {
3559 xmlFreeDoc(bucket->doc);
4179 /* Never free the doc here, since this will be done by the buckets. */
5491 * @node: the node in the schema doc
5531 * @node: the corresponding node in the schema doc
5857 ns = xmlSearchNs(attr->doc, attr->parent, NULL);
5878 ns = xmlSearchNs(attr->doc, attr->parent, pref);
6003 res = xmlAddID(NULL, attr->doc, value, attr);
8079 nsList = xmlGetNsList(attr->doc, attr->parent);
10108 (((b)->doc == NULL) && ((b)->schemaLocation != NULL))
10153 oldDoc = schema->doc;
10156 schema->doc = bucket->doc;
10174 /* Compile the schema doc. */
10175 node = xmlDocGetRootElement(bucket->doc);
10199 schema->doc = oldDoc;
10216 "reparsing a schema doc");
10219 if (bucket->doc == NULL) {
10221 "parsing a schema doc, but there's no doc");
10291 base = xmlNodeGetBase(ctxtNode->doc, ctxtNode);
10293 URI = xmlBuildURI(location, ctxtNode->doc->URL);
10336 xmlDocPtr doc = NULL;
10358 * skip the location and relation logic and just parse the doc.
10404 /* Did we already fetch the doc? */
10473 /* First given location of the schema; load the doc. */
10498 * No bucket + first location: load the doc and create a
10547 if ((bkt != NULL) && (bkt->doc != NULL)) {
10549 "trying to load a schema doc, but a doc is already "
10559 doc = schemaDoc;
10562 /* TODO: Does the context or the doc hold the location? */
10580 * the content of the schema doc?
10588 doc = xmlCtxtReadFile(parserCtxt, (const char *) schemaLocation,
10592 doc = xmlCtxtReadMemory(parserCtxt, schemaBuffer, schemaBufferLen,
10595 if (doc != NULL)
10596 doc->URL = xmlStrdup(schemaLocation);
10611 if (doc == NULL) {
10634 if ((doc == NULL) && located)
10647 if (doc != NULL) {
10651 docElem = xmlDocGetRootElement(doc);
10692 if (doc != NULL) {
10693 bkt->doc = doc;
10718 if ((doc != NULL) && (! preserveDoc)) {
10719 xmlFreeDoc(doc);
10721 bkt->doc = NULL;
10726 if ((doc != NULL) && (! preserveDoc)) {
10727 xmlFreeDoc(doc);
10729 bkt->doc = NULL;
10942 base = xmlNodeGetBase(node->doc, node);
10944 uri = xmlBuildURI(*schemaLocation, node->doc->URL);
11024 if ((bucket == NULL) || (bucket->doc == NULL)) {
11118 if (bucket && (!bucket->parsed) && (bucket->doc != NULL)) {
12530 * @doc: a preparsed document tree
12538 xmlSchemaNewDocParserCtxt(xmlDocPtr doc)
12542 if (doc == NULL)
12547 ret->doc = doc;
12566 if (ctxt->doc != NULL && !ctxt->preserve)
12567 xmlFreeDoc(ctxt->doc);
18045 type->node->doc->URL,
18279 * to have it somehow anchored in the schema doc.
18394 * somehow anchor it in the doc.
21373 ctxt->URL, ctxt->doc, ctxt->buffer, ctxt->size, NULL,
21400 mainSchema->doc = bucket->doc;
21699 pctxt->doc = bucket->doc;
21703 pctxt->doc = NULL;
21729 pctxt->doc = NULL;
21732 pctxt->doc = NULL;
21894 (vctxt->inode->node->doc == NULL)) {
21896 "no node or node's doc avaliable");
21899 ns = xmlSearchNs(vctxt->inode->node->doc,
21939 xmlNsPtr ns = xmlSearchNs(node->doc, node, prefix);
25496 if (ielem && ielem->node && ielem->node->doc)
25599 ns = xmlSearchNsByHref(defAttrOwnerElem->doc,
25611 ns = xmlSearchNs(defAttrOwnerElem->doc,
27608 vctxt->doc = NULL;
27936 /* DOC VAL TODO: Move this to the start function. */
27940 valRoot = xmlDocGetRootElement(vctxt->doc);
27969 * DOC VAL TODO: We do not register namespace declaration
27988 xmlNodeListGetString(attr->doc, attr->children, 1), 1);
28031 * DOC VAL TODO: Should we skip further validation of the
28037 * DOC VAL TODO: What to do with entities?
28048 * DOC VAL TODO: XInclude nodes, etc.
28052 * Walk the doc.
28175 if (vctxt->doc != NULL) {
28225 ctxt->doc = elem->doc;
28234 * @doc: a parsed document tree
28242 xmlSchemaValidateDoc(xmlSchemaValidCtxtPtr ctxt, xmlDocPtr doc)
28244 if ((ctxt == NULL) || (doc == NULL))
28247 ctxt->doc = doc;
28248 ctxt->node = xmlDocGetRootElement(doc);
28252 (xmlNodePtr) doc, NULL,