public void registerNamespaces(Element e) { for (Iterator iter = XmlUtil.getAllAttributes(e); iter.hasNext();) { Attr a = (Attr) iter.next(); if (a.getName().equals(PREFIX_XMLNS)) { // default namespace declaration _nsSupport.declarePrefix("", a.getValue()); } else { String prefix = XmlUtil.getPrefix(a.getName()); if (prefix != null && prefix.equals(PREFIX_XMLNS)) { String nsPrefix = XmlUtil.getLocalPart(a.getName()); String uri = a.getValue(); _nsSupport.declarePrefix(nsPrefix, uri); } } } }
public void registerNamespaces(Element e) { for (Iterator iter = XmlUtil.getAllAttributes(e); iter.hasNext();) { Attr a = (Attr) iter.next(); if (a.getName().equals(PREFIX_XMLNS)) { // default namespace declaration _nsSupport.declarePrefix("", a.getValue()); } else { String prefix = XmlUtil.getPrefix(a.getName()); if (prefix != null && prefix.equals(PREFIX_XMLNS)) { String nsPrefix = XmlUtil.getLocalPart(a.getName()); String uri = a.getValue(); _nsSupport.declarePrefix(nsPrefix, uri); } } } }
public void registerNamespaces(Element e) { for (Iterator iter = XmlUtil.getAllAttributes(e); iter.hasNext();) { Attr a = (Attr) iter.next(); if (a.getName().equals(PREFIX_XMLNS)) { // default namespace declaration _nsSupport.declarePrefix("", a.getValue()); } else { String prefix = XmlUtil.getPrefix(a.getName()); if (prefix != null && prefix.equals(PREFIX_XMLNS)) { String nsPrefix = XmlUtil.getLocalPart(a.getName()); String uri = a.getValue(); _nsSupport.declarePrefix(nsPrefix, uri); } } } }
public void registerNamespaces(Element e) { for (Iterator iter = XmlUtil.getAllAttributes(e); iter.hasNext();) { Attr a = (Attr) iter.next(); if (a.getName().equals(PREFIX_XMLNS)) { // default namespace declaration _nsSupport.declarePrefix("", a.getValue()); } else { String prefix = XmlUtil.getPrefix(a.getName()); if (prefix != null && prefix.equals(PREFIX_XMLNS)) { String nsPrefix = XmlUtil.getLocalPart(a.getName()); String uri = a.getValue(); _nsSupport.declarePrefix(nsPrefix, uri); } } } }