Lines Matching defs:document
30 * XML document manipulation routines
3603 semerr(gettext("document is not a manifest.\n"));
3609 semerr(gettext("document is not a profile.\n"));
3615 semerr(gettext("document is not an archive.\n"));
3663 xmlDocPtr document;
3691 if ((document = xmlReadFile(filename, NULL, 0)) == NULL) {
3692 semerr(gettext("couldn't parse document\n"));
3696 document->name = safe_strdup(filename);
3699 * Verify that this is a document type we understand.
3701 if ((dtd = xmlGetIntSubset(document)) == NULL) {
3702 semerr(gettext("document has no DTD\n"));
3709 dtdpath = (char *)document->intSubset->SystemID;
3713 semerr(gettext("document DTD unknown; not service bundle?\n"));
3717 if ((cursor = xmlDocGetRootElement(document)) == NULL) {
3718 semerr(gettext("document is empty\n"));
3719 xmlFreeDoc(document);
3724 semerr(gettext("document is not a service bundle\n"));
3725 xmlFreeDoc(document);
3738 if (document->extSubset != NULL)
3739 xmlFreeDtd(document->extSubset);
3741 document->extSubset = dtd;
3744 if (xmlXIncludeProcessFlags(document, XML_PARSE_XINCLUDE) == -1) {
3746 "in document\n"));
3757 r = xmlValidateDocument(vcp, document);
3763 xmlFreeDoc(document);
3774 xmlFreeDoc(document);