• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libxml2-2.7.2/

Lines Matching defs:doc

41 xmlValidateAttributeValueInternal(xmlDocPtr doc, xmlAttributeType type,
515 xmlGenericError(xmlGenericErrorContext, "?doc? ");
636 if (doc == NULL) return(0); \
637 else if ((doc->intSubset == NULL) && \
638 (doc->extSubset == NULL)) return(0)
914 * @doc: the document
923 xmlNewDocElementContent(xmlDocPtr doc, const xmlChar *name,
928 if (doc != NULL)
929 dict = doc->dict;
1002 * @doc: the document owning the element declaration
1010 xmlCopyDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
1016 if (doc != NULL)
1017 dict = doc->dict;
1041 ret->c1 = xmlCopyDocElementContent(doc, cur->c1);
1071 tmp->c1 = xmlCopyDocElementContent(doc,cur->c1);
1097 * @doc: the document owning the element declaration
1103 xmlFreeDocElementContent(xmlDocPtr doc, xmlElementContentPtr cur) {
1107 if (doc != NULL)
1108 dict = doc->dict;
1124 if (cur->c1 != NULL) xmlFreeDocElementContent(doc, cur->c1);
1357 xmlFreeDocElementContent(elem->doc, elem->content);
1453 if (dtd->doc != NULL)
1454 dict = dtd->doc->dict;
1472 if ((dtd->doc != NULL) && (dtd->doc->intSubset != NULL)) {
1473 ret = xmlHashLookup2(dtd->doc->intSubset->elements, name, ns);
1477 xmlHashRemoveEntry2(dtd->doc->intSubset->elements, name, ns, NULL);
1576 ret->content = xmlCopyDocElementContent(dtd->doc, content);
1583 ret->doc = dtd->doc;
1925 if (attr->doc != NULL)
1926 dict = attr->doc->dict;
1996 if (dtd->doc != NULL)
1997 dict = dtd->doc->dict;
2032 (!xmlValidateAttributeValueInternal(dtd->doc, type, defaultValue))) {
2046 if ((dtd->doc != NULL) && (dtd->doc->extSubset == dtd) &&
2047 (dtd->doc->intSubset != NULL) &&
2048 (dtd->doc->intSubset->attributes != NULL)) {
2049 ret = xmlHashLookup3(dtd->doc->intSubset->attributes, name, ns, elem);
2086 * doc must be set before possible error causes call
2090 ret->doc = dtd->doc;
2417 if (dtd->doc != NULL)
2418 dict = dtd->doc->dict;
2603 if (id->doc != NULL)
2604 dict = id->doc->dict;
2617 * @doc: pointer to the document
2626 xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
2631 if (doc == NULL) {
2644 table = (xmlIDTablePtr) doc->ids;
2646 doc->ids = table = xmlHashCreateDict(0, doc->dict);
2664 ret->doc = doc;
2669 if (doc->dict != NULL)
2670 ret->name = xmlDictLookup(doc->dict, attr->name, -1);
2712 * @doc: the document
2724 xmlIsID(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
2730 if (doc == NULL) return(0);
2731 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
2733 } else if (doc->type == XML_HTML_DOCUMENT_NODE) {
2756 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullelemname,
2758 if ((attrDecl == NULL) && (doc->extSubset != NULL))
2759 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullelemname,
2776 * @doc: the document
2784 xmlRemoveID(xmlDocPtr doc, xmlAttrPtr attr) {
2789 if (doc == NULL) return(-1);
2791 table = (xmlIDTablePtr) doc->ids;
2797 ID = xmlNodeListGetString(doc, attr->children, 1);
2813 * @doc: pointer to the document
2821 xmlGetID(xmlDocPtr doc, const xmlChar *ID) {
2825 if (doc == NULL) {
2833 table = (xmlIDTablePtr) doc->ids;
2845 return((xmlAttrPtr) doc);
2938 * @doc: pointer to the document
2947 xmlAddRef(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
2953 if (doc == NULL) {
2966 table = (xmlRefTablePtr) doc->refs;
2968 doc->refs = table = xmlHashCreateDict(0, doc->dict);
3051 * @doc: the document
3062 xmlIsRef(xmlDocPtr doc, xmlNodePtr elem, xmlAttrPtr attr) {
3065 if (doc == NULL) {
3066 doc = attr->doc;
3067 if (doc == NULL) return(0);
3070 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
3072 } else if (doc->type == XML_HTML_DOCUMENT_NODE) {
3079 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, attr->name);
3080 if ((attrDecl == NULL) && (doc->extSubset != NULL))
3081 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
3094 * @doc: the document
3102 xmlRemoveRef(xmlDocPtr doc, xmlAttrPtr attr) {
3108 if (doc == NULL) return(-1);
3110 table = (xmlRefTablePtr) doc->refs;
3116 ID = xmlNodeListGetString(doc, attr->children, 1);
3151 * @doc: pointer to the document
3159 xmlGetRefs(xmlDocPtr doc, const xmlChar *ID) {
3162 if (doc == NULL) {
3170 table = (xmlRefTablePtr) doc->refs;
3233 if (dtd->doc != NULL)
3234 dict = dtd->doc->dict;
3389 * @doc: the document
3399 xmlValidateNotationUse(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
3402 if ((doc == NULL) || (doc->intSubset == NULL)) return(-1);
3404 notaDecl = xmlGetDtdNotationDesc(doc->intSubset, notationName);
3405 if ((notaDecl == NULL) && (doc->extSubset != NULL))
3406 notaDecl = xmlGetDtdNotationDesc(doc->extSubset, notationName);
3409 xmlErrValidNode(ctxt, (xmlNodePtr) doc, XML_DTD_UNKNOWN_NOTATION,
3420 * @doc: the document
3430 xmlIsMixedElement(xmlDocPtr doc, const xmlChar *name) {
3433 if ((doc == NULL) || (doc->intSubset == NULL)) return(-1);
3435 elemDecl = xmlGetDtdElementDesc(doc->intSubset, name);
3436 if ((elemDecl == NULL) && (doc->extSubset != NULL))
3437 elemDecl = xmlGetDtdElementDesc(doc->extSubset, name);
3459 xmlIsDocNameStartChar(xmlDocPtr doc, int c) {
3460 if ((doc == NULL) || (doc->properties & XML_DOC_OLD10) == 0) {
3489 xmlIsDocNameChar(xmlDocPtr doc, int c) {
3490 if ((doc == NULL) || (doc->properties & XML_DOC_OLD10) == 0) {
3528 * @doc: pointer to the document or NULL
3537 xmlValidateNameValueInternal(xmlDocPtr doc, const xmlChar *value) {
3545 if (!xmlIsDocNameStartChar(doc, val))
3550 while (xmlIsDocNameChar(doc, val)) {
3576 * @doc: pointer to the document or NULL
3585 xmlValidateNamesValueInternal(xmlDocPtr doc, const xmlChar *value) {
3594 if (!xmlIsDocNameStartChar(doc, val))
3599 while (xmlIsDocNameChar(doc, val)) {
3611 if (!xmlIsDocNameStartChar(doc, val))
3617 while (xmlIsDocNameChar(doc, val)) {
3644 * @doc: pointer to the document or NULL
3655 xmlValidateNmtokenValueInternal(xmlDocPtr doc, const xmlChar *value) {
3664 if (!xmlIsDocNameChar(doc, val))
3669 while (xmlIsDocNameChar(doc, val)) {
3697 * @doc: pointer to the document or NULL
3708 xmlValidateNmtokensValueInternal(xmlDocPtr doc, const xmlChar *value) {
3722 if (!xmlIsDocNameChar(doc, val))
3725 while (xmlIsDocNameChar(doc, val)) {
3738 if (!xmlIsDocNameChar(doc, val))
3744 while (xmlIsDocNameChar(doc, val)) {
3774 * @doc: a document instance
3787 xmlValidateNotationDecl(xmlValidCtxtPtr ctxt ATTRIBUTE_UNUSED, xmlDocPtr doc ATTRIBUTE_UNUSED,
3820 xmlValidateAttributeValueInternal(xmlDocPtr doc, xmlAttributeType type,
3825 return(xmlValidateNamesValueInternal(doc, value));
3830 return(xmlValidateNameValueInternal(doc, value));
3833 return(xmlValidateNmtokensValueInternal(doc, value));
3835 return(xmlValidateNmtokenValueInternal(doc, value));
3850 * @doc: the document
3877 xmlValidateAttributeValue2(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
3892 ent = xmlGetDocEntity(doc, value);
3894 if ((ent == NULL) && (doc->standalone == 1)) {
3895 doc->standalone = 0;
3896 ent = xmlGetDocEntity(doc, value);
3899 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3905 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3926 ent = xmlGetDocEntity(doc, nam);
3928 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3934 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3951 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
3952 if ((nota == NULL) && (doc->extSubset != NULL))
3953 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
3956 xmlErrValidNode(ctxt, (xmlNodePtr) doc,
3971 * @doc: the document
3993 xmlValidCtxtNormalizeAttributeValue(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4000 if (doc == NULL) return(NULL);
4012 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, name);
4013 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
4014 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, name);
4021 if ((attrDecl == NULL) && (doc->intSubset != NULL))
4022 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name);
4023 if ((attrDecl == NULL) && (doc->extSubset != NULL)) {
4024 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name);
4050 if ((doc->standalone) && (extsubset == 1) && (!xmlStrEqual(value, ret))) {
4061 * @doc: the document
4079 xmlValidNormalizeAttributeValue(xmlDocPtr doc, xmlNodePtr elem,
4085 if (doc == NULL) return(NULL);
4097 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, name);
4098 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4099 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname, name);
4103 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, elem->name, name);
4104 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4105 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, elem->name, name);
4140 * @doc: a document instance
4156 xmlValidateAttributeDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4166 val = xmlValidateAttributeValueInternal(doc, attr->atype,
4191 xmlElementPtr elem = xmlGetDtdElementDesc(doc->intSubset,
4203 if (doc->intSubset != NULL) {
4204 table = (xmlAttributeTablePtr) doc->intSubset->attributes;
4214 } else if (doc->extSubset != NULL) {
4216 elem = xmlGetDtdElementDesc(doc->extSubset, attr->elem);
4253 * @doc: a document instance
4267 xmlValidateElementDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4335 tst = xmlGetDtdElementDesc(doc->intSubset, elem->name);
4345 tst = xmlGetDtdElementDesc(doc->extSubset, elem->name);
4366 * @doc: a document instance
4389 xmlValidateOneAttribute(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4408 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname,
4410 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4411 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname,
4414 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname, attr->name);
4415 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4416 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4424 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name,
4426 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4427 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name,
4430 attrDecl = xmlGetDtdAttrDesc(doc->intSubset,
4432 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4433 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4448 val = xmlValidateAttributeValueInternal(doc, attrDecl->atype, value);
4468 if (xmlAddID(ctxt, doc, value, attr) == NULL)
4474 if (xmlAddRef(ctxt, doc, value, attr) == NULL)
4484 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
4486 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
4533 ret &= xmlValidateAttributeValue2(ctxt, doc, attr->name,
4542 * @doc: a document instance
4566 xmlValidateOneNamespace(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
4587 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, fullname,
4589 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4590 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, fullname,
4593 attrDecl = xmlGetDtdAttrDesc(doc->intSubset, fullname,
4595 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4596 attrDecl = xmlGetDtdAttrDesc(doc->extSubset, fullname,
4604 attrDecl = xmlGetDtdQAttrDesc(doc->intSubset, elem->name,
4606 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4607 attrDecl = xmlGetDtdQAttrDesc(doc->extSubset, elem->name,
4610 attrDecl = xmlGetDtdAttrDesc(doc->intSubset,
4612 if ((attrDecl == NULL) && (doc->extSubset != NULL))
4613 attrDecl = xmlGetDtdAttrDesc(doc->extSubset,
4633 val = xmlValidateAttributeValueInternal(doc, attrDecl->atype, value);
4665 if (xmlAddID(ctxt, doc, value, (xmlAttrPtr) ns) == NULL)
4671 if (xmlAddRef(ctxt, doc, value, (xmlAttrPtr) ns) == NULL)
4681 nota = xmlGetDtdNotationDesc(doc->intSubset, value);
4683 nota = xmlGetDtdNotationDesc(doc->extSubset, value);
4755 ret &= xmlValidateAttributeValue2(ctxt, doc, ns->prefix,
4758 ret &= xmlValidateAttributeValue2(ctxt, doc, BAD_CAST "xmlns",
5547 * @doc: a document instance
5555 xmlValidateOneCdataElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5560 if ((ctxt == NULL) || (doc == NULL) || (elem == NULL))
5679 * @doc: a document instance
5689 xmlValidGetElemDecl(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5694 if ((ctxt == NULL) || (doc == NULL) ||
5707 elemDecl = xmlGetDtdQElementDesc(doc->intSubset,
5709 if ((elemDecl == NULL) && (doc->extSubset != NULL)) {
5710 elemDecl = xmlGetDtdQElementDesc(doc->extSubset,
5723 elemDecl = xmlGetDtdElementDesc(doc->intSubset, elem->name);
5724 if ((elemDecl == NULL) && (doc->extSubset != NULL)) {
5725 elemDecl = xmlGetDtdElementDesc(doc->extSubset, elem->name);
5743 * @doc: a document instance
5752 xmlValidatePushElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
5829 eDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset);
5910 * @doc: a document instance
5919 xmlValidatePopElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc ATTRIBUTE_UNUSED,
5964 * @doc: a document instance
5980 xmlValidateOneElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc,
6055 elemDecl = xmlValidGetElemDecl(ctxt, doc, elem, &extsubset);
6087 ret = xmlValidateOneCdataElement(ctxt, doc, elem);
6163 if ((doc->standalone == 1) && (extsubset == 1)) {
6332 * @doc: a document instance
6344 xmlValidateRoot(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6348 if (doc == NULL) return(0);
6350 root = xmlDocGetRootElement(doc);
6361 if ((doc->intSubset != NULL) &&
6362 (doc->intSubset->name != NULL)) {
6366 if (!xmlStrEqual(doc->intSubset->name, root->name)) {
6376 ret = xmlStrEqual(doc->intSubset->name, fullname);
6382 if ((xmlStrEqual(doc->intSubset->name, BAD_CAST "HTML")) &&
6387 root->name, doc->intSubset->name, NULL);
6399 * @doc: a document instance
6408 xmlValidateElement(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr elem) {
6434 ret &= xmlValidateOneElement(ctxt, doc, elem);
6438 value = xmlNodeListGetString(doc, attr->children, 0);
6439 ret &= xmlValidateOneAttribute(ctxt, doc, elem, attr, value);
6447 ret &= xmlValidateOneNamespace(ctxt, doc, elem, NULL,
6450 ret &= xmlValidateOneNamespace(ctxt, doc, elem,
6457 ret &= xmlValidateElement(ctxt, doc, child);
6496 id = xmlGetID(ctxt->doc, str);
6510 id = xmlGetID(ctxt->doc, name);
6532 id = xmlGetID(ctxt->doc, str);
6587 * @doc: a document instance
6600 xmlValidateDocumentFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6605 if (doc == NULL) {
6607 "xmlValidateDocumentFinal: doc == NULL\n", NULL);
6620 table = (xmlRefTablePtr) doc->refs;
6621 ctxt->doc = doc;
6630 * @doc: a document instance
6644 xmlValidateDtd(xmlValidCtxtPtr ctxt, xmlDocPtr doc, xmlDtdPtr dtd) {
6650 if (doc == NULL) return(0);
6651 oldExt = doc->extSubset;
6652 oldInt = doc->intSubset;
6653 doc->extSubset = dtd;
6654 doc->intSubset = NULL;
6655 ret = xmlValidateRoot(ctxt, doc);
6657 doc->extSubset = oldExt;
6658 doc->intSubset = oldInt;
6661 if (doc->ids != NULL) {
6662 xmlFreeIDTable(doc->ids);
6663 doc->ids = NULL;
6665 if (doc->refs != NULL) {
6666 xmlFreeRefTable(doc->refs);
6667 doc->refs = NULL;
6669 root = xmlDocGetRootElement(doc);
6670 ret = xmlValidateElement(ctxt, doc, root);
6671 ret &= xmlValidateDocumentFinal(ctxt, doc);
6672 doc->extSubset = oldExt;
6673 doc->intSubset = oldInt;
6688 ret = xmlValidateNotationUse(ctxt, cur->doc, notation);
6700 xmlDocPtr doc;
6719 ret = xmlValidateAttributeValue2(ctxt, ctxt->doc, cur->name,
6727 ret = xmlValidateAttributeValue2(ctxt, ctxt->doc,
6736 doc = cur->doc;
6744 if (doc != NULL)
6745 elem = xmlGetDtdElementDesc(doc->intSubset, cur->elem);
6746 if ((elem == NULL) && (doc != NULL))
6747 elem = xmlGetDtdElementDesc(doc->extSubset, cur->elem);
6769 * @doc: a document instance
6784 xmlValidateDtdFinal(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6789 if ((doc == NULL) || (ctxt == NULL)) return(0);
6790 if ((doc->intSubset == NULL) && (doc->extSubset == NULL))
6792 ctxt->doc = doc;
6794 dtd = doc->intSubset;
6804 dtd = doc->extSubset;
6820 * @doc: a document instance
6832 xmlValidateDocument(xmlValidCtxtPtr ctxt, xmlDocPtr doc) {
6836 if (doc == NULL)
6838 if ((doc->intSubset == NULL) && (doc->extSubset == NULL)) {
6843 if ((doc->intSubset != NULL) && ((doc->intSubset->SystemID != NULL) ||
6844 (doc->intSubset->ExternalID != NULL)) && (doc->extSubset == NULL)) {
6846 if (doc->intSubset->SystemID != NULL) {
6847 sysID = xmlBuildURI(doc->intSubset->SystemID,
6848 doc->URL);
6852 (const char *) doc->intSubset->SystemID);
6857 doc->extSubset = xmlParseDTD(doc->intSubset->ExternalID,
6861 if (doc->extSubset == NULL) {
6862 if (doc->intSubset->SystemID != NULL) {
6865 (const char *) doc->intSubset->SystemID);
6869 (const char *) doc->intSubset->ExternalID);
6875 if (doc->ids != NULL) {
6876 xmlFreeIDTable(doc->ids);
6877 doc->ids = NULL;
6879 if (doc->refs != NULL) {
6880 xmlFreeRefTable(doc->refs);
6881 doc->refs = NULL;
6883 ret = xmlValidateDtdFinal(ctxt, doc);
6884 if (!xmlValidateRoot(ctxt, doc)) return(0);
6886 root = xmlDocGetRootElement(doc);
6887 ret &= xmlValidateElement(ctxt, doc, root);
6888 ret &= xmlValidateDocumentFinal(ctxt, doc);
7013 element_desc = xmlGetDtdElementDesc(parent->doc->intSubset,
7015 if ((element_desc == NULL) && (parent->doc->extSubset != NULL))
7016 element_desc = xmlGetDtdElementDesc(parent->doc->extSubset,
7031 test_node = xmlNewDocNode (ref_node->doc, NULL, BAD_CAST "<!dummy?>", NULL);
7052 if (xmlValidateOneElement(&vctxt, parent->doc, parent)) {