/external/libxml2/doc/examples/ |
D | testWriter.c | 94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename() 116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename() 124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename() 125 BAD_CAST "1.0"); in testXmlwriterFilename() 133 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "xml:lang", in testXmlwriterFilename() 134 BAD_CAST "de"); in testXmlwriterFilename() 154 rc = xmlTextWriterStartElement(writer, BAD_CAST "HEADER"); in testXmlwriterFilename() 162 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "X_ORDER_ID", in testXmlwriterFilename() 171 rc = xmlTextWriterWriteFormatElement(writer, BAD_CAST "CUSTOMER_ID", in testXmlwriterFilename() 181 rc = xmlTextWriterWriteElement(writer, BAD_CAST "NAME_1", tmp); in testXmlwriterFilename() [all …]
|
D | tree2.c | 38 doc = xmlNewDoc(BAD_CAST "1.0"); in main() 39 root_node = xmlNewNode(NULL, BAD_CAST "root"); in main() 45 xmlCreateIntSubset(doc, BAD_CAST "root", NULL, BAD_CAST "tree2.dtd"); in main() 51 xmlNewChild(root_node, NULL, BAD_CAST "node1", in main() 52 BAD_CAST "content of node 1"); in main() 56 xmlNewChild(root_node, NULL, BAD_CAST "node2", NULL); in main() 63 xmlNewChild(root_node, NULL, BAD_CAST "node3", in main() 64 BAD_CAST "this node has attributes"); in main() 65 xmlNewProp(node, BAD_CAST "attribute", BAD_CAST "yes"); in main() 66 xmlNewProp(node, BAD_CAST "foo", BAD_CAST "bar"); in main() [all …]
|
D | io2.c | 27 doc = xmlNewDoc(BAD_CAST "1.0"); in main() 28 n = xmlNewNode(NULL, BAD_CAST "root"); in main() 29 xmlNodeSetContent(n, BAD_CAST "content"); in main()
|
D | xpath2.c | 45 if (example4(argv[1], BAD_CAST argv[2], BAD_CAST argv[3])) { in main()
|
/external/libxml2/ |
D | xmlcatalog.c | 222 ret = xmlCatalogAdd(BAD_CAST argv[0], NULL, in usershell() 223 BAD_CAST argv[1]); in usershell() 225 ret = xmlCatalogAdd(BAD_CAST argv[0], BAD_CAST argv[1], in usershell() 226 BAD_CAST argv[2]); in usershell() 235 ret = xmlCatalogAdd(BAD_CAST argv[0], NULL, in usershell() 236 BAD_CAST argv[1]); in usershell() 238 ret = xmlCatalogAdd(BAD_CAST argv[0], BAD_CAST argv[1], in usershell() 239 BAD_CAST argv[2]); in usershell() 248 ret = xmlCatalogRemove(BAD_CAST argv[0]); in usershell() 257 ans = xmlCatalogResolve(BAD_CAST argv[0], in usershell() [all …]
|
D | runxmlconf.c | 308 id = xmlGetProp(cur, BAD_CAST "ID"); in xmlconfTestItem() 321 type = xmlGetProp(cur, BAD_CAST "TYPE"); in xmlconfTestItem() 326 uri = xmlGetProp(cur, BAD_CAST "URI"); in xmlconfTestItem() 339 version = xmlGetProp(cur, BAD_CAST "VERSION"); in xmlconfTestItem() 341 entities = xmlGetProp(cur, BAD_CAST "ENTITIES"); in xmlconfTestItem() 342 if (!xmlStrEqual(entities, BAD_CAST "none")) { in xmlconfTestItem() 346 rec = xmlGetProp(cur, BAD_CAST "RECOMMENDATION"); in xmlconfTestItem() 348 (xmlStrEqual(rec, BAD_CAST "XML1.0")) || in xmlconfTestItem() 349 (xmlStrEqual(rec, BAD_CAST "XML1.0-errata2e")) || in xmlconfTestItem() 350 (xmlStrEqual(rec, BAD_CAST "XML1.0-errata3e")) || in xmlconfTestItem() [all …]
|
D | rngparser.c | 139 static const xmlChar *xmlCRelaxNGInherit = BAD_CAST "Inherit string"; 140 static const xmlChar *xmlCRelaxNGDefault = BAD_CAST "Default string"; 486 if ((prefix != NULL) && (xmlStrEqual(prefix, BAD_CAST "xml")) && in xmlParseCRNG_bindPrefix() 491 (!xmlStrEqual(prefix, BAD_CAST "xml"))) { in xmlParseCRNG_bindPrefix() 536 if ((prefix != NULL) && (xmlStrEqual(prefix, BAD_CAST "xsd")) && in xmlParseCRNG_bindDatatypePrefix() 538 BAD_CAST "http://www.w3.org/2001/XMLSchema-datatypes"))) { in xmlParseCRNG_bindDatatypePrefix() 612 lib = xmlNewNsProp(NULL, NULL, BAD_CAST "datatypeLibrary", library); in xmlParseCRNG_datatypeAttributes() 617 typ = xmlNewNsProp(NULL, NULL, BAD_CAST "type", type); in xmlParseCRNG_datatypeAttributes() 677 cur = xmlNewNode(NULL, BAD_CAST "except"); in xmlParseCRNG_exceptNameClass() 715 cur = xmlNewNode(NULL, BAD_CAST "anyName"); in xmlParseCRNG_innerNameClass() [all …]
|
D | testAutomata.c | 101 BAD_CAST ptr, NULL); in testRegexpFile() 168 BAD_CAST ptr, min, max, NULL); in testRegexpFile() 201 ret = xmlRegExecPushString(exec, BAD_CAST expr, NULL); in testRegexpFile() 232 cur = xmlAutomataNewTransition(am, start, NULL, BAD_CAST"a", NULL); in main() 233 xmlAutomataNewTransition(am, cur, cur, BAD_CAST"b", NULL); in main() 234 xmlAutomataNewTransition(am, cur, cur, BAD_CAST"a", NULL); in main() 235 cur = xmlAutomataNewCountTrans(am, cur, NULL, BAD_CAST"a", 2, 3, NULL); in main() 245 ret = xmlRegExecPushString(exec, BAD_CAST"a", NULL); in main() 250 ret =xmlRegExecPushString(exec, BAD_CAST"a", NULL); in main() 255 ret =xmlRegExecPushString(exec, BAD_CAST"b", NULL); in main() [all …]
|
D | xlink.c | 42 #define XLINK_NAMESPACE (BAD_CAST "http://www.w3.org/1999/xlink/namespace/") 43 #define XHTML_NAMESPACE (BAD_CAST "http://www.w3.org/1999/xhtml/") 149 type = xmlGetNsProp(node, BAD_CAST"type", XLINK_NAMESPACE); in xlinkIsLink() 151 if (xmlStrEqual(type, BAD_CAST "simple")) { in xlinkIsLink() 153 } else if (xmlStrEqual(type, BAD_CAST "extended")) { in xlinkIsLink() 154 role = xmlGetNsProp(node, BAD_CAST "role", XLINK_NAMESPACE); in xlinkIsLink() 160 if (xmlStrEqual(role, BAD_CAST"xlink:external-linkset")) in xlinkIsLink()
|
D | catalog.c | 565 node = xmlNewDocNode(doc, ns, BAD_CAST "nextCatalog", NULL); in xmlDumpXMLCatalogNode() 566 xmlSetProp(node, BAD_CAST "catalog", cur->value); in xmlDumpXMLCatalogNode() 572 node = xmlNewDocNode(doc, ns, BAD_CAST "group", NULL); in xmlDumpXMLCatalogNode() 573 xmlSetProp(node, BAD_CAST "id", cur->name); in xmlDumpXMLCatalogNode() 578 xmlSetNsProp(node, xns, BAD_CAST "base", in xmlDumpXMLCatalogNode() 585 xmlSetProp(node, BAD_CAST "prefer", BAD_CAST "public"); in xmlDumpXMLCatalogNode() 588 xmlSetProp(node, BAD_CAST "prefer", BAD_CAST "system"); in xmlDumpXMLCatalogNode() 595 node = xmlNewDocNode(doc, ns, BAD_CAST "public", NULL); in xmlDumpXMLCatalogNode() 596 xmlSetProp(node, BAD_CAST "publicId", cur->name); in xmlDumpXMLCatalogNode() 597 xmlSetProp(node, BAD_CAST "uri", cur->value); in xmlDumpXMLCatalogNode() [all …]
|
D | entities.c | 37 NULL, XML_ENTITY_DECL, BAD_CAST "lt", 39 BAD_CAST "<", BAD_CAST "<", 1, 44 NULL, XML_ENTITY_DECL, BAD_CAST "gt", 46 BAD_CAST ">", BAD_CAST ">", 1, 51 NULL, XML_ENTITY_DECL, BAD_CAST "amp", 53 BAD_CAST "&", BAD_CAST "&", 1, 58 NULL, XML_ENTITY_DECL, BAD_CAST "quot", 60 BAD_CAST "\"", BAD_CAST "\"", 1, 65 NULL, XML_ENTITY_DECL, BAD_CAST "apos", 67 BAD_CAST "'", BAD_CAST "'", 1, [all …]
|
D | xmlsave.c | 31 #define XHTML_STRICT_PUBLIC_ID BAD_CAST \ 33 #define XHTML_STRICT_SYSTEM_ID BAD_CAST \ 35 #define XHTML_FRAME_PUBLIC_ID BAD_CAST \ 37 #define XHTML_FRAME_SYSTEM_ID BAD_CAST \ 39 #define XHTML_TRANS_PUBLIC_ID BAD_CAST \ 41 #define XHTML_TRANS_SYSTEM_ID BAD_CAST \ 44 #define XHTML_NS_NAME BAD_CAST "http://www.w3.org/1999/xhtml" 447 xmlBufAdd(buf->buffer, BAD_CAST "&", 1); in xmlAttrSerializeContent() 450 xmlBufAdd(buf->buffer, BAD_CAST ";", 1); in xmlAttrSerializeContent() 635 if (xmlStrEqual(cur->prefix, BAD_CAST "xml")) in xmlNsDumpOutput() [all …]
|
D | runsuite.c | 227 xmlXPathRegisterNs(ctxtXPath, BAD_CAST "ts", BAD_CAST "TestSuite"); in initializeLibxml2() 228 xmlXPathRegisterNs(ctxtXPath, BAD_CAST "xlink", in initializeLibxml2() 229 BAD_CAST "http://www.w3.org/1999/xlink"); in initializeLibxml2() 247 comp = xmlXPathCompile(BAD_CAST xpath); in getNext() 275 comp = xmlXPathCompile(BAD_CAST xpath); in getString() 486 dtd = xmlGetProp(tmp, BAD_CAST "dtd"); in xsdTestCase() 645 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in xsdTest() 652 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in xsdTest() 708 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest1() 715 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest1() [all …]
|
D | xmlschemas.c | 1129 return(BAD_CAST "simple type definition"); in xmlSchemaItemTypeToStr() 1131 return(BAD_CAST "simple type definition"); in xmlSchemaItemTypeToStr() 1133 return(BAD_CAST "complex type definition"); in xmlSchemaItemTypeToStr() 1135 return(BAD_CAST "element declaration"); in xmlSchemaItemTypeToStr() 1137 return(BAD_CAST "attribute use"); in xmlSchemaItemTypeToStr() 1139 return(BAD_CAST "attribute declaration"); in xmlSchemaItemTypeToStr() 1141 return(BAD_CAST "model group definition"); in xmlSchemaItemTypeToStr() 1143 return(BAD_CAST "attribute group definition"); in xmlSchemaItemTypeToStr() 1145 return(BAD_CAST "notation declaration"); in xmlSchemaItemTypeToStr() 1147 return(BAD_CAST "model group (sequence)"); in xmlSchemaItemTypeToStr() [all …]
|
D | xmlIO.c | 812 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) { in xmlFileOpen_real() 818 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) { in xmlFileOpen_real() 824 } else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:/", 6)) { in xmlFileOpen_real() 894 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) in xmlFileOpenW() 900 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) { in xmlFileOpenW() 1084 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) in xmlGzfileOpen_real() 1090 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) { in xmlGzfileOpen_real() 1163 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) in xmlGzfileOpenW() 1169 else if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file:///", 8)) { in xmlGzfileOpenW() 1285 if (!xmlStrncasecmp(BAD_CAST filename, BAD_CAST "file://localhost/", 17)) { in xmlXzfileOpen_real() [all …]
|
D | uri.c | 1215 (xmlStrEqual(BAD_CAST uri->scheme, BAD_CAST "file"))) { in xmlSaveUri() 1777 segment = xmlURIEscapeStr(BAD_CAST uri->scheme, BAD_CAST "+-."); in xmlURIEscape() 1780 ret = xmlStrcat(ret, BAD_CAST ":"); in xmlURIEscape() 1786 xmlURIEscapeStr(BAD_CAST uri->authority, BAD_CAST "/?;:@"); in xmlURIEscape() 1788 ret = xmlStrcat(ret, BAD_CAST "//"); in xmlURIEscape() 1794 segment = xmlURIEscapeStr(BAD_CAST uri->user, BAD_CAST ";:&=+$,"); in xmlURIEscape() 1796 ret = xmlStrcat(ret,BAD_CAST "//"); in xmlURIEscape() 1798 ret = xmlStrcat(ret, BAD_CAST "@"); in xmlURIEscape() 1803 segment = xmlURIEscapeStr(BAD_CAST uri->server, BAD_CAST "/?;:@"); in xmlURIEscape() 1806 ret = xmlStrcat(ret, BAD_CAST "//"); in xmlURIEscape() [all …]
|
D | relaxng.c | 1543 name2 = xmlGetProp(tmp, BAD_CAST "name"); in xmlRelaxNGRemoveRedefine() 1561 (inc->doc->children->name, BAD_CAST "grammar")) { in xmlRelaxNGRemoveRedefine() 1563 href = xmlGetProp(tmp, BAD_CAST "href"); in xmlRelaxNGRemoveRedefine() 1655 if (xmlHasProp(root, BAD_CAST "ns") == NULL) { in xmlRelaxNGLoadInclude() 1656 xmlSetProp(root, BAD_CAST "ns", ns); in xmlRelaxNGLoadInclude() 1723 name = xmlGetProp(cur, BAD_CAST "name"); in xmlRelaxNGLoadInclude() 1986 if (xmlHasProp(root, BAD_CAST "ns") == NULL) { in xmlRelaxNGLoadExternalRef() 1987 xmlSetProp(root, BAD_CAST "ns", ns); in xmlRelaxNGLoadExternalRef() 2095 arg1 = BAD_CAST ""; in xmlRelaxNGGetErrorString() 2097 arg2 = BAD_CAST ""; in xmlRelaxNGGetErrorString() [all …]
|
D | nanohttp.c | 743 } else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"Content-Type:", 13)) { in xmlNanoHTTPScanAnswer() 758 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer() 769 } else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"ContentType:", 12)) { in xmlNanoHTTPScanAnswer() 783 charset = xmlStrstr(BAD_CAST ctxt->contentType, BAD_CAST "charset="); in xmlNanoHTTPScanAnswer() 794 } else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"Location:", 9)) { in xmlNanoHTTPScanAnswer() 800 xmlChar *tmp_http = xmlStrdup(BAD_CAST "http://"); in xmlNanoHTTPScanAnswer() 808 } else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"WWW-Authenticate:", 17)) { in xmlNanoHTTPScanAnswer() 814 } else if (!xmlStrncasecmp(BAD_CAST line, BAD_CAST"Proxy-Authenticate:", 19)) { in xmlNanoHTTPScanAnswer() 821 } else if ( !xmlStrncasecmp( BAD_CAST line, BAD_CAST"Content-Encoding:", 17) ) { in xmlNanoHTTPScanAnswer() 824 if ( !xmlStrncasecmp( BAD_CAST cur, BAD_CAST"gzip", 4) ) { in xmlNanoHTTPScanAnswer() [all …]
|
D | xmlschemastypes.c | 913 return (BAD_CAST val->value.str); in xmlSchemaValueGetAsString() 2162 value = BAD_CAST ""; in xmlSchemaValAtomicType() 3718 cur->value.str = xmlStrdup(BAD_CAST val->value.str); in xmlSchemaCopyValue() 3725 xmlStrdup(BAD_CAST val->value.qname.name); in xmlSchemaCopyValue() 3728 xmlStrdup(BAD_CAST val->value.qname.uri); in xmlSchemaCopyValue() 3733 cur->value.hex.str = xmlStrdup(BAD_CAST val->value.hex.str); in xmlSchemaCopyValue() 3739 xmlStrdup(BAD_CAST val->value.base64.str); in xmlSchemaCopyValue() 5698 *retValue = BAD_CAST xmlStrdup(BAD_CAST ""); in xmlSchemaGetCanonValue() 5701 BAD_CAST xmlStrdup((const xmlChar *) val->value.str); in xmlSchemaGetCanonValue() 5705 *retValue = BAD_CAST xmlStrdup(BAD_CAST ""); in xmlSchemaGetCanonValue() [all …]
|
D | c14n.c | 430 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlC14NVisibleNsStackFind() 431 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlC14NVisibleNsStackFind() 463 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlExcC14NVisibleNsStackFind() 464 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlExcC14NVisibleNsStackFind() 502 (xmlStrEqual(ns->prefix, BAD_CAST "xml")) && in xmlC14NIsXmlNs() 759 if (xmlStrEqual(prefix, BAD_CAST "#default") in xmlExcC14NProcessNamespacesAxis() 760 || xmlStrEqual(prefix, BAD_CAST "")) { in xmlExcC14NProcessNamespacesAxis() 1037 attr = xmlHasNsProp(cur, BAD_CAST "base", XML_XML_NAMESPACE); in xmlC14NFixupBaseAttr() 1052 tmp_str2 = xmlStrcat(tmp_str, BAD_CAST "/"); in xmlC14NFixupBaseAttr() 1085 if((res == NULL) || xmlStrEqual(res, BAD_CAST "")) { in xmlC14NFixupBaseAttr() [all …]
|
D | testXPath.c | 86 res = xmlXPtrEval(BAD_CAST str, ctxt); in testXPath() 92 res = xmlXPathEvalExpression(BAD_CAST str, ctxt); in testXPath() 97 comp = xmlXPathCompile(BAD_CAST str); in testXPath()
|
D | schematron.c | 39 #define SCT_OLD_NS BAD_CAST "http://www.ascc.net/xml/schematron" 41 #define XML_SCHEMATRON_NS BAD_CAST "http://purl.oclc.org/dsdl/schematron" 863 context = xmlGetNoNsProp(rule, BAD_CAST "context"); in xmlSchematronParseRule() 891 test = xmlGetNoNsProp(cur, BAD_CAST "test"); in xmlSchematronParseRule() 914 test = xmlGetNoNsProp(cur, BAD_CAST "test"); in xmlSchematronParseRule() 968 id = xmlGetNoNsProp(pat, BAD_CAST "id"); in xmlSchematronParsePattern() 970 id = xmlGetNoNsProp(pat, BAD_CAST "name"); in xmlSchematronParsePattern() 1021 href = xmlGetNoNsProp(cur, BAD_CAST "href"); 1113 doc->URL = xmlStrdup(BAD_CAST "in_memory_buffer"); in xmlSchematronParse() 1114 ctxt->URL = xmlDictLookup(ctxt->dict, BAD_CAST "in_memory_buffer", -1); in xmlSchematronParse() [all …]
|
D | xmlreader.c | 962 qname = xmlStrcat(qname, BAD_CAST ":"); in xmlTextReaderValidatePush() 1053 qname = xmlStrcat(qname, BAD_CAST ":"); in xmlTextReaderValidatePop() 2412 if (xmlStrEqual(name, BAD_CAST "xmlns")) { in xmlTextReaderGetAttribute() 2428 if (xmlStrEqual(prefix, BAD_CAST "xmlns")) { in xmlTextReaderGetAttribute() 2478 if (xmlStrEqual(namespaceURI, BAD_CAST "http://www.w3.org/2000/xmlns/")) { in xmlTextReaderGetAttributeNs() 2479 if (! xmlStrEqual(localName, BAD_CAST "xmlns")) { in xmlTextReaderGetAttributeNs() 2480 prefix = BAD_CAST localName; in xmlTextReaderGetAttributeNs() 2655 if (xmlStrEqual(name, BAD_CAST "xmlns")) { in xmlTextReaderMoveToAttribute() 2687 if (xmlStrEqual(prefix, BAD_CAST "xmlns")) { in xmlTextReaderMoveToAttribute() 2754 if (xmlStrEqual(namespaceURI, BAD_CAST "http://www.w3.org/2000/xmlns/")) { in xmlTextReaderMoveToAttributeNs() [all …]
|
/external/parameter-framework/upstream/xmlserializer/ |
D | XmlMemoryDocSource.cpp | 41 : base(xmlNewDoc(BAD_CAST "1.0"), bValidateWithSchema, in CXmlMemoryDocSource() 42 xmlNewNode(NULL, BAD_CAST strRootElementType.c_str())), in CXmlMemoryDocSource()
|
D | XmlElement.cpp | 214 xmlNewProp(_pXmlElement, BAD_CAST name.c_str(), BAD_CAST value); in setAttribute() 230 xmlAddChild(_pXmlElement, xmlNewText(BAD_CAST strContent.c_str())); in setTextContent() 237 xmlNodePtr pChildNode = xmlNewChild(_pXmlElement, NULL, BAD_CAST strType.c_str(), NULL); in createChild()
|