Home | History | Annotate | Download | only in libxml2

Lines Matching refs:nameSpace

271     /* xml: prefix is not really a namespace */
713 * @node: the element carrying the namespace
715 * @prefix: the prefix for the namespace
717 * Creation of a new Namespace. This function will refuse to create
718 * a namespace with a similar prefix than an existing one present on this
720 * Note that for a default namespace, @prefix should be NULL.
722 * We use href==NULL in the case of an element creation where the namespace
725 * Returns a new namespace pointer or NULL
735 /* xml namespace is predefined, no need to add it */
741 * namespace, which breaks
742 * Namespace constraint: Reserved Prefixes and Namespace Names
743 * from XML namespace. But documents authors may not care in
749 * Allocate a new Namespace and fill the fields.
753 xmlTreeErrMemory("building namespace");
796 * @ns: a namespace pointer
798 * Associate a namespace to a node, a posteriori.
816 * @cur: the namespace pointer
818 * Free up the structures associated to a namespace
836 * @cur: the first namespace pointer
1946 * @ns: the namespace
1950 * Create a new property tagged with a namespace and carried by a node.
1971 * @ns: the namespace
1975 * Create a new property tagged with a namespace and carried by a node.
2097 * Note this doesn't work for namespace definition attributes
2206 * @ns: namespace if any
2247 * @ns: namespace if any
2291 * @ns: namespace if any
2328 * @ns: namespace if any
2366 * @ns: namespace if any
2457 * @ns: a namespace if any
2463 * created element inherits the namespace of @parent. If @content is non NULL,
2858 * @ns: a namespace if any
2864 * created element inherits the namespace of @parent. If @content is non NULL,
3796 * Note that namespace nodes can't be unlinked as they do not have
3941 * @cur: the namespace
3943 * Do a copy of the namespace.
3968 * @cur: the first namespace
3970 * Do a copy of an namespace list.
4021 * Humm, we are copying an element whose namespace is defined
4051 * we are in trouble: we need a new reconcilied namespace.
4144 * say RPM:Copyright without changing the namespace pointer to
4148 * the existing namespace. The actual solution seems to add
4149 * a copy of the namespace at the top of the copied tree if
4155 * namespace info, but don't recurse on children.
4262 * Humm, we are copying an element whose namespace is defined
4277 * reference the existing namespace definition in our own tree.
4702 * namespace, so use "*".
5889 * Search all the namespace applying to a given element.
5892 * namespace if defined
5915 xmlTreeErrMemory("getting namespace list");
5933 xmlTreeErrMemory("getting namespace list");
5954 * Ensures that there is an XML namespace declaration on the doc.
5970 "allocating the XML namespace");
5986 * @nameSpace: the namespace prefix
5989 * recurse on the parents until it finds the defined namespace
5991 * @nameSpace can be NULL, this is a search for the default namespace.
5993 * the namespace within those you will be in troubles !!! A warning
5996 * Returns the namespace pointer or NULL.
5999 xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
6005 if ((nameSpace != NULL) &&
6006 (xmlStrEqual(nameSpace, (const xmlChar *)"xml"))) {
6009 * The XML-1.0 namespace is normally held on the root
6015 xmlTreeErrMemory("searching namespace");
6032 * Return the XML namespace declaration held by the doc.
6047 if ((cur->prefix == NULL) && (nameSpace == NULL) &&
6050 if ((cur->prefix != NULL) && (nameSpace != NULL) &&
6052 (xmlStrEqual(cur->prefix, nameSpace)))
6059 if ((cur->prefix == NULL) && (nameSpace == NULL) &&
6062 if ((cur->prefix != NULL) && (nameSpace != NULL) &&
6064 (xmlStrEqual(cur->prefix, nameSpace)))
6078 * @ancestor: the ancestor carrying the namespace
6079 * @prefix: the namespace prefix
6081 * Verify that the given namespace held on @ancestor is still in scope
6121 * @href: the namespace value
6124 * the defined namespace or return NULL otherwise.
6125 * Returns the namespace pointer or NULL.
6138 * Only the document can hold the XML spec namespace.
6142 * The XML-1.0 namespace is normally held on the root
6148 xmlTreeErrMemory("searching namespace");
6165 * Return the XML namespace declaration held by the doc.
6209 * @tree: a node expected to hold the new namespace
6210 * @ns: the original namespace
6212 * This function tries to locate a namespace definition in a tree
6213 * ancestors, or create a new namespace definition node similar to
6215 * null (default namespace) or reused within the subtree defined by
6217 * Returns the (new) namespace definition or NULL in case of error
6240 * Search an existing namespace definition inherited.
6248 * Let's strip namespace prefixes longer than 20 chars !
6282 * namespace declarations outside the subtree or invalid/masked. As much
6286 * Returns the number of namespace declarations created or -1 in case of error.
6305 * Reconciliate the node namespace
6335 * OK we need to recreate a new namespace definition
6366 * now check for namespace hold by attributes on the node.
6399 * OK we need to recreate a new namespace definition
6483 * We want the attr to be in no namespace.
6493 * We want the attr to be in the specified namespace.
6533 * The common and nice case: Attr in no namespace.
6673 * @nameSpace: the URI of the namespace
6676 * This attribute has to be anchored in the namespace specified.
6680 * Note that a namespace of NULL indicates to use the default namespace.
6686 xmlHasNsProp(const xmlNode *node, const xmlChar *name, const xmlChar *nameSpace) {
6688 return(xmlGetPropNodeInternal(node, name, nameSpace, xmlCheckDTD));
6702 * for namespace aware processing.
6727 * an attribute in no namespace.
6746 * @nameSpace: the URI of the namespace
6749 * This attribute has to be anchored in the namespace specified.
6758 xmlGetNsProp(const xmlNode *node, const xmlChar *name, const xmlChar *nameSpace) {
6761 prop = xmlGetPropNodeInternal(node, name, nameSpace, xmlCheckDTD);
6774 * This handles only attributes in no namespace.
6792 * @ns: the namespace definition
6820 * namespace-binding will be used, if in scope; it is an
6853 * @ns: the namespace definition
7890 xmlTreeErrMemory("allocating namespace map");
7910 xmlTreeErrMemory("allocating namespace map item");
7948 * @nsName: the namespace name
7952 * the given prefix and namespace name.
8026 * TODO: Store the namespace map in the context.
8063 * @map: the namespace map
8330 * @nsName: the searched namespace name
8433 * @prefix: the searched namespace prefix
8496 * @nsName: the namespace-name of the ns-decl
8500 * Declares a new namespace on @elem. It tries to use the
8605 * Handle XML namespace.
8609 * Insert XML namespace mapping.
8653 * No luck, the namespace is out of scope or shadowed.
8718 * Ensures that the tree is namespace wellformed by creating additional
8759 * Namespace declarations.
8981 * If @destParent is given, it ensures that the tree is namespace
9076 * Namespace declarations.
9126 /* No namespace, no fun. */
9153 * No matching namespace in scope. We need a new one.
9346 * If @destParent is given, it ensures that the tree is namespace
9412 * Reuse the namespace map of the context.
9537 * Namespace declarations.
9552 * Clone namespace declarations.
9562 "allocating namespace");
9696 * No matching namespace in scope. We need a new one.
9907 /* XML Namespace. */
10007 * If @destParent is given, it ensures that the tree is namespace