/** * * * @see org.w3c.dom.Node as of DOM Level 2 */ public final String getNamespaceURI() { return dtm.getNamespaceURI(node); }
/** * @see PrefixResolver#getNamespaceForPrefix(String, Node) */ public String getNamespaceForPrefix(String prefix) { return dtm.getNamespaceURI(handle); }
/** * * * @see org.w3c.dom.Node as of DOM Level 2 */ public final String getNamespaceURI() { return dtm.getNamespaceURI(node); }
/** * @see PrefixResolver#getNamespaceForPrefix(String, Node) */ public String getNamespaceForPrefix(String prefix) { return dtm.getNamespaceURI(handle); }
if(t == DTM.ELEMENT_NODE) s = dtm.getNamespaceURI(context); return XString.EMPTYSTRING; s = dtm.getNamespaceURI(context);
if(t == DTM.ELEMENT_NODE) s = dtm.getNamespaceURI(context); return XString.EMPTYSTRING; s = dtm.getNamespaceURI(context);
/** * Retrieves a node specified by local name and namespace URI. HTML-only * DOM implementations do not need to implement this method. * @param namespaceURI The namespace URI of the node to retrieve. * @param localName The local name of the node to retrieve. * * @return A <code>Node</code> (of any type) with the specified local * name and namespace URI, or <code>null</code> if they do not * identify any node in this map. * @since DOM Level 2 */ public Node getNamedItemNS(String namespaceURI, String localName) { Node retNode = null; for (int n = dtm.getFirstAttribute(element); n != DTM.NULL; n = dtm.getNextAttribute(n)) { if (localName.equals(dtm.getLocalName(n))) { String nsURI = dtm.getNamespaceURI(n); if ((namespaceURI == null && nsURI == null) || (namespaceURI != null && namespaceURI.equals(nsURI))) { retNode = dtm.getNode(n); break; } } } return retNode; }
/** * Retrieves a node specified by local name and namespace URI. HTML-only * DOM implementations do not need to implement this method. * @param namespaceURI The namespace URI of the node to retrieve. * @param localName The local name of the node to retrieve. * * @return A <code>Node</code> (of any type) with the specified local * name and namespace URI, or <code>null</code> if they do not * identify any node in this map. * @since DOM Level 2 */ public Node getNamedItemNS(String namespaceURI, String localName) { Node retNode = null; for (int n = dtm.getFirstAttribute(element); n != DTM.NULL; n = dtm.getNextAttribute(n)) { if (localName.equals(dtm.getLocalName(n))) { String nsURI = dtm.getNamespaceURI(n); if ((namespaceURI == null && nsURI == null) || (namespaceURI != null && namespaceURI.equals(nsURI))) { retNode = dtm.getNode(n); break; } } } return retNode; }
break; case DTM.ELEMENT_NODE : String ns = m_dtm.getNamespaceURI(node); if(null == ns) ns = "";
break; case DTM.ELEMENT_NODE : String ns = m_dtm.getNamespaceURI(node); if(null == ns) ns = "";
&& dtm.getNamespaceURI(n) == null) handler.startPrefixMapping("", ""); dtm.dispatchToEvents(n, handler);
return; String ns = dtm.getNamespaceURI(attr);
&& dtm.getNamespaceURI(n) == null) handler.startPrefixMapping("", ""); dtm.dispatchToEvents(n, handler);
return; String ns = dtm.getNamespaceURI(attr);
case DTMFilter.SHOW_ELEMENT : return (m_isTotallyWild || (subPartMatchNS(dtm.getNamespaceURI(context), m_namespace) && subPartMatch(dtm.getLocalName(context), m_name))) ? m_score : SCORE_NONE;
case DTMFilter.SHOW_ELEMENT : return (m_isTotallyWild || (subPartMatchNS(dtm.getNamespaceURI(context), m_namespace) && subPartMatch(dtm.getLocalName(context), m_name))) ? m_score : SCORE_NONE;
String namespace = m_dtm.getNamespaceURI(node);
String namespace = m_dtm.getNamespaceURI(node);
transformer.executeChildTemplates(this, true); String ns = dtm.getNamespaceURI(sourceNode); String localName = dtm.getLocalName(sourceNode); transformer.getResultTreeHandler().endElement(ns, localName,
MyPrefixResolver resolver; if (dtm.getNamespaceURI(contextNode) == null) { resolver = new MyPrefixResolver(dtm.getNode(contextNode), dtm,contextNode, false); } else {