Lines Matching defs:doc
101 if (entity->doc != NULL)
102 dict = entity->doc->dict;
212 if (dtd->doc != NULL)
213 dict = dtd->doc->dict;
237 ret->doc = dtd->doc;
287 * @doc: the document
299 xmlAddDtdEntity(xmlDocPtr doc, const xmlChar *name, int type,
305 if (doc == NULL) {
310 if (doc->extSubset == NULL) {
315 dtd = doc->extSubset;
323 ret->doc = dtd->doc;
336 * @doc: the document
348 xmlAddDocEntity(xmlDocPtr doc, const xmlChar *name, int type,
354 if (doc == NULL) {
359 if (doc->intSubset == NULL) {
364 dtd = doc->intSubset;
372 ret->doc = dtd->doc;
385 * @doc: the document
401 xmlNewEntity(xmlDocPtr doc, const xmlChar *name, int type,
407 if ((doc != NULL) && (doc->intSubset != NULL)) {
408 return(xmlAddDocEntity(doc, name, type, ExternalID, SystemID, content));
410 if (doc != NULL)
411 dict = doc->dict;
417 ret->doc = doc;
439 * @doc: the document referencing the entity
448 xmlGetParameterEntity(xmlDocPtr doc, const xmlChar *name) {
452 if (doc == NULL)
454 if ((doc->intSubset != NULL) && (doc->intSubset->pentities != NULL)) {
455 table = (xmlEntitiesTablePtr) doc->intSubset->pentities;
460 if ((doc->extSubset != NULL) && (doc->extSubset->pentities != NULL)) {
461 table = (xmlEntitiesTablePtr) doc->extSubset->pentities;
469 * @doc: the document referencing the entity
479 xmlGetDtdEntity(xmlDocPtr doc, const xmlChar *name) {
482 if (doc == NULL)
484 if ((doc->extSubset != NULL) && (doc->extSubset->entities != NULL)) {
485 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
493 * @doc: the document referencing the entity
503 xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) {
507 if (doc != NULL) {
508 if ((doc->intSubset != NULL) && (doc->intSubset->entities != NULL)) {
509 table = (xmlEntitiesTablePtr) doc->intSubset->entities;
514 if (doc->standalone != 1) {
515 if ((doc->extSubset != NULL) &&
516 (doc->extSubset->entities != NULL)) {
517 table = (xmlEntitiesTablePtr) doc->extSubset->entities;
543 * @doc: the document containing the string
554 xmlEncodeEntitiesReentrant(xmlDocPtr doc, const xmlChar *input) {
562 if (doc != NULL)
563 html = (doc->type == XML_HTML_DOCUMENT_NODE);
610 if (((doc != NULL) && (doc->encoding != NULL)) || (html)) {
631 if (doc != NULL)
632 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
664 if (doc != NULL)
665 doc->encoding = xmlStrdup(BAD_CAST "ISO-8859-1");
699 * @doc: the document containing the string
708 xmlEncodeSpecialChars(xmlDocPtr doc ATTRIBUTE_UNUSED, const xmlChar *input) {