Lines Matching defs:nsMap
7802 xmlDOMWrapNsMapFree(xmlNsMapPtr nsmap)
7806 if (nsmap == NULL)
7808 cur = nsmap->pool;
7814 cur = nsmap->first;
7820 xmlFree(nsmap);
7833 xmlDOMWrapNsMapAddItem(xmlNsMapPtr *nsmap, int position,
7839 if (nsmap == NULL)
7843 map = *nsmap;
7855 *nsmap = map;
8535 * @nsMap: the ns-map
8540 * Searches for a matching ns-name in the ns-decls of @nsMap, if not
8553 xmlNsMapPtr *nsMap,
8562 (nsMap == NULL))
8582 if ((XML_NSMAP_NOTEMPTY(*nsMap)) &&
8588 XML_NSMAP_FOREACH(*nsMap, mi) {
8629 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns,
8643 if (*nsMap != NULL) {
8647 XML_NSMAP_FOREACH(*nsMap, mi) {
8660 if (xmlDOMWrapNsMapAddItem(nsMap, -1, ns, tmpns, depth) == NULL) {
8699 xmlNsMapPtr nsMap = NULL;
8733 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap,
8743 if (optRemoveRedundantNS && XML_NSMAP_NOTEMPTY(nsMap)) {
8744 XML_NSMAP_FOREACH(nsMap, mi) {
8780 if (XML_NSMAP_NOTEMPTY(nsMap)) {
8781 XML_NSMAP_FOREACH(nsMap, mi) {
8794 if (xmlDOMWrapNsMapAddItem(&nsMap, -1, ns, ns,
8814 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap,
8834 if (XML_NSMAP_NOTEMPTY(nsMap)) {
8838 XML_NSMAP_FOREACH(nsMap, mi) {
8852 &nsMap, depth,
8884 if (XML_NSMAP_NOTEMPTY(nsMap)) {
8888 while ((nsMap->last != NULL) &&
8889 (nsMap->last->depth >= depth))
8891 XML_NSMAP_POP(nsMap, mi)
8896 XML_NSMAP_FOREACH(nsMap, mi) {
8926 if (nsMap != NULL)
8927 xmlDOMWrapNsMapFree(nsMap);
8963 xmlNsMapPtr nsMap = NULL;
8985 nsMap = (xmlNsMapPtr) ctxt->namespaceMap;
9052 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap,
9066 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9067 XML_NSMAP_FOREACH(nsMap, mi) {
9081 if (xmlDOMWrapNsMapAddItem(&nsMap, -1,
9093 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap,
9101 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9105 XML_NSMAP_FOREACH(nsMap, mi) {
9127 if (xmlDOMWrapNsMapAddItem(&nsMap, -1,
9139 &nsMap, depth,
9234 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9238 while ((nsMap->last != NULL) &&
9239 (nsMap->last->depth >= depth))
9241 XML_NSMAP_POP(nsMap, mi)
9246 XML_NSMAP_FOREACH(nsMap, mi) {
9274 if (nsMap != NULL) {
9275 if ((ctxt) && (ctxt->namespaceMap == nsMap)) {
9279 if (nsMap->first) {
9280 if (nsMap->pool)
9281 nsMap->last->next = nsMap->pool;
9282 nsMap->pool = nsMap->first;
9283 nsMap->first = NULL;
9286 xmlDOMWrapNsMapFree(nsMap);
9333 xmlNsMapPtr nsMap = NULL;
9377 nsMap = (xmlNsMapPtr) ctxt->namespaceMap;
9507 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap,
9549 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9550 XML_NSMAP_FOREACH(nsMap, mi) {
9567 if (xmlDOMWrapNsMapAddItem(&nsMap, -1,
9634 if (xmlDOMWrapNSNormGatherInScopeNs(&nsMap, destParent) == -1)
9642 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9646 XML_NSMAP_FOREACH(nsMap, mi) {
9669 if (xmlDOMWrapNsMapAddItem(&nsMap, -1,
9681 &nsMap, depth,
9754 if (XML_NSMAP_NOTEMPTY(nsMap)) {
9758 while ((nsMap->last != NULL) &&
9759 (nsMap->last->depth >= depth))
9761 XML_NSMAP_POP(nsMap, mi)
9766 XML_NSMAP_FOREACH(nsMap, mi) {
9809 if (nsMap != NULL) {
9810 if ((ctxt) && (ctxt->namespaceMap == nsMap)) {
9814 if (nsMap->first) {
9815 if (nsMap->pool)
9816 nsMap->last->next = nsMap->pool;
9817 nsMap->pool = nsMap->first;
9818 nsMap->first = NULL;
9821 xmlDOMWrapNsMapFree(nsMap);