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 * We use href==NULL in the case of an element creation where the namespace
722 * Returns a new namespace pointer or NULL
732 /* xml namespace is predefined, no need to add it */
738 * namespace, which breaks
739 * Namespace constraint: Reserved Prefixes and Namespace Names
740 * from XML namespace. But documents authors may not care in
746 * Allocate a new Namespace and fill the fields.
750 xmlTreeErrMemory("building namespace");
793 * @ns: a namespace pointer
795 * Associate a namespace to a node, a posteriori.
811 * @cur: the namespace pointer
813 * Free up the structures associated to a namespace
831 * @cur: the first namespace pointer
1940 * @ns: the namespace
1944 * Create a new property tagged with a namespace and carried by a node.
1965 * @ns: the namespace
1969 * Create a new property tagged with a namespace and carried by a node.
2091 * Note this doesn't work for namespace definition attributes
2200 * @ns: namespace if any
2241 * @ns: namespace if any
2285 * @ns: namespace if any
2322 * @ns: namespace if any
2360 * @ns: namespace if any
2451 * @ns: a namespace if any
2457 * created element inherits the namespace of @parent. If @content is non NULL,
2833 * @ns: a namespace if any
2839 * created element inherits the namespace of @parent. If @content is non NULL,
3768 * Note that namespace nodes can't be unlinked as they do not have
3913 * @cur: the namespace
3915 * Do a copy of the namespace.
3940 * @cur: the first namespace
3942 * Do a copy of an namespace list.
3993 * Humm, we are copying an element whose namespace is defined
4023 * we are in trouble: we need a new reconcilied namespace.
4116 * say RPM:Copyright without changing the namespace pointer to
4120 * the existing namespace. The actual solution seems to add
4121 * a copy of the namespace at the top of the copied tree if
4127 * namespace info, but don't recurse on children.
4234 * Humm, we are copying an element whose namespace is defined
4249 * reference the existing namespace definition in our own tree.
4668 * namespace, so use "*".
5850 * Search all the namespace applying to a given element.
5853 * namespace if defined
5876 xmlTreeErrMemory("getting namespace list");
5894 xmlTreeErrMemory("getting namespace list");
5915 * Ensures that there is an XML namespace declaration on the doc.
5931 "allocating the XML namespace");
5947 * @nameSpace: the namespace prefix
5950 * recurse on the parents until it finds the defined namespace
5952 * @nameSpace can be NULL, this is a search for the default namespace.
5954 * the namespace within those you will be in troubles !!! A warning
5957 * Returns the namespace pointer or NULL.
5960 xmlSearchNs(xmlDocPtr doc, xmlNodePtr node, const xmlChar *nameSpace) {
5966 if ((nameSpace != NULL) &&
5967 (xmlStrEqual(nameSpace, (const xmlChar *)"xml"))) {
5970 * The XML-1.0 namespace is normally held on the root
5976 xmlTreeErrMemory("searching namespace");
5993 * Return the XML namespace declaration held by the doc.
6008 if ((cur->prefix == NULL) && (nameSpace == NULL) &&
6011 if ((cur->prefix != NULL) && (nameSpace != NULL) &&
6013 (xmlStrEqual(cur->prefix, nameSpace)))
6020 if ((cur->prefix == NULL) && (nameSpace == NULL) &&
6023 if ((cur->prefix != NULL) && (nameSpace != NULL) &&
6025 (xmlStrEqual(cur->prefix, nameSpace)))
6039 * @ancestor: the ancestor carrying the namespace
6040 * @prefix: the namespace prefix
6042 * Verify that the given namespace held on @ancestor is still in scope
6082 * @href: the namespace value
6085 * the defined namespace or return NULL otherwise.
6086 * Returns the namespace pointer or NULL.
6099 * Only the document can hold the XML spec namespace.
6103 * The XML-1.0 namespace is normally held on the root
6109 xmlTreeErrMemory("searching namespace");
6126 * Return the XML namespace declaration held by the doc.
6170 * @tree: a node expected to hold the new namespace
6171 * @ns: the original namespace
6173 * This function tries to locate a namespace definition in a tree
6174 * ancestors, or create a new namespace
6176 * null (default namespace) or reused within the subtree defined by
6178 * Returns the (new) namespace definition or NULL in case of error
6201 * Search an existing namespace definition inherited.
6209 * Let's strip namespace prefixes longer than 20 chars !
6243 * namespace declarations outside the subtree or invalid/masked. As much
6247 * Returns the number of namespace declarations created or -1 in case of error.
6266 * Reconciliate the node namespace
6296 * OK we need to recreate a new namespace definition
6327 * now check for namespace hold by attributes on the node.
6360 * OK we need to recreate a new namespace definition
6444 * We want the attr to be in no namespace.
6454 * We want the attr to be in the specified namespace.
6494 * The common and nice case: Attr in no namespace.
6634 * @nameSpace: the URI of the namespace
6637 * This attribute has to be anchored in the namespace specified.
6641 * Note that a namespace of NULL indicates to use the default namespace.
6647 xmlHasNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace) {
6649 return(xmlGetPropNodeInternal(node, name, nameSpace, xmlCheckDTD));
6663 * for namespace aware processing.
6688 * an attribute in no namespace.
6707 * @nameSpace: the URI of the namespace
6710 * This attribute has to be anchored in the namespace specified.
6719 xmlGetNsProp(xmlNodePtr node, const xmlChar *name, const xmlChar *nameSpace) {
6722 prop = xmlGetPropNodeInternal(node, name, nameSpace, xmlCheckDTD);
6735 * This handles only attributes in no namespace.
6753 * @ns: the namespace definition
6781 * namespace-binding will be used, if in scope; it is an
6814 * @ns: the namespace definition
7851 xmlTreeErrMemory("allocating namespace map");
7871 xmlTreeErrMemory("allocating namespace map item");
7910 * @nsName: the namespace name
7914 * the given prefix and namespace name.
7988 * TODO: Store the namespace map in the context.
8025 * @map: the namespace map
8292 * @nsName: the searched namespace name
8395 * @prefix: the searched namespace prefix
8458 * @nsName: the namespace-name of the ns-decl
8462 * Declares a new namespace on @elem. It tries to use the
8567 * Handle XML namespace.
8571 * Insert XML namespace mapping.
8615 * No luck, the namespace is out of scope or shadowed.
8680 * Ensures that the tree is namespace wellformed by creating additional
8721 * Namespace declarations.
8943 * If @destParent is given, it ensures that the tree is namespace
9038 * Namespace declarations.
9088 /* No namespace, no fun. */
9115 * No matching namespace in scope. We need a new one.
9308 * If @destParent is given, it ensures that the tree is namespace
9374 * Reuse the namespace map of the context.
9499 * Namespace declarations.
9514 * Clone namespace declarations.
9524 "allocating namespace");
9658 * No matching namespace in scope. We need a new one.
9868 /* XML Namespace. */
9968 * If @destParent is given, it ensures that the tree is namespace