Lines Matching defs:prefix

618  * @fullname:  The element name, including namespace prefix
646 * @fullname: The element name, including namespace prefix
667 * @prefix: the element namespace prefix if available
670 * @namespaces: pointer to the array of prefix/URI pairs namespace definitions
673 * @attributes: pointer to the array of (localname/prefix/URI/value/end)
681 const xmlChar *prefix,
696 reader->startElementNs(ctx, localname, prefix, URI, nb_namespaces,
712 * @prefix: the element namespace prefix if available
720 const xmlChar * prefix,
730 reader->endElementNs(ctx, localname, prefix, URI);
901 if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
908 qname = xmlStrdup(node->ns->prefix);
992 if ((node->ns == NULL) || (node->ns->prefix == NULL)) {
999 qname = xmlStrdup(node->ns->prefix);
2312 xmlChar *prefix = NULL;
2328 localname = xmlSplitQName2(name, &prefix);
2336 if (ns->prefix == NULL) {
2349 if (xmlStrEqual(prefix, BAD_CAST "xmlns")) {
2352 if ((ns->prefix != NULL) && (xmlStrEqual(ns->prefix, localname))) {
2359 ns = xmlSearchNs(reader->node->doc, reader->node, prefix);
2365 if (prefix != NULL)
2366 xmlFree(prefix);
2385 xmlChar *prefix = NULL;
2401 prefix = BAD_CAST localName;
2405 if ((prefix == NULL && ns->prefix == NULL) ||
2406 ((ns->prefix != NULL) && (xmlStrEqual(ns->prefix, localName)))) {
2472 * @prefix: the prefix whose namespace URI is to be resolved. To return
2475 * Resolves a namespace prefix in the scope of the current element.
2477 * Returns a string containing the namespace URI to which the prefix maps
2481 xmlTextReaderLookupNamespace(xmlTextReaderPtr reader, const xmlChar *prefix) {
2489 ns = xmlSearchNs(reader->node->doc, reader->node, prefix);
2557 xmlChar *prefix = NULL;
2571 localname = xmlSplitQName2(name, &prefix);
2579 if (ns->prefix == NULL) {
2596 ((prop->ns == NULL) || (prop->ns->prefix == NULL))) {
2608 if (xmlStrEqual(prefix, BAD_CAST "xmlns")) {
2611 if ((ns->prefix != NULL) && (xmlStrEqual(ns->prefix, localname))) {
2627 (prop->ns != NULL) && (xmlStrEqual(prop->ns->prefix, prefix))) {
2636 if (prefix != NULL)
2637 xmlFree(prefix);
2643 if (prefix != NULL)
2644 xmlFree(prefix);
2665 xmlChar *prefix = NULL;
2677 prefix = BAD_CAST localName;
2681 if ((prefix == NULL && ns->prefix == NULL) ||
2682 ((ns->prefix != NULL) && (xmlStrEqual(ns->prefix, localName)))) {
3044 if (ns->prefix == NULL)
3047 return(xmlStrdup(ns->prefix));
3075 if (ns->prefix == NULL)
3078 return(ns->prefix);
3109 (node->ns->prefix == NULL))
3112 ret = xmlStrdup(node->ns->prefix);
3144 if (ns->prefix == NULL)
3147 ret = xmlStrcat(ret, ns->prefix);
3184 (node->ns->prefix == NULL))
3186 return(CONSTQSTR(node->ns->prefix, node->name));
3214 if (ns->prefix == NULL)
3216 return(CONSTQSTR(BAD_CAST "xmlns", ns->prefix));
3235 * Returns the prefix or NULL if not available
3248 if (ns->prefix == NULL)
3255 if ((node->ns != NULL) && (node->ns->prefix != NULL))
3256 return(xmlStrdup(node->ns->prefix));
3266 * Returns the prefix or NULL if not available, the string is deallocated
3280 if (ns->prefix == NULL)
3287 if ((node->ns != NULL) && (node->ns->prefix != NULL))
3288 return(CONSTSTR(node->ns->prefix));
3886 * @namespaces: the prefix definitions, array of [URI, prefix] or NULL