Lines Matching refs:prefix
40 * Returns the "prefix" part of a QName or the empty string (not
41 * null) if the name has no prefix.
44 * @return The prefix part of the element name.
48 String prefix = "";
51 prefix = name.substring(0, name.indexOf(':'));
54 return prefix;
59 * name if it has no prefix.
75 * Returns the namespace URI for the specified prefix at the
79 * @param prefix The prefix.
80 * @return The namespace URI associated with the prefix, or
81 * null if no namespace declaration exists for the prefix.
83 public static String getNamespaceURI(Node node, String prefix) {
88 if (prefix.equals("")) {
93 String nsattr = "xmlns:" + prefix;
99 return getNamespaceURI(node.getParentNode(), prefix);
111 String prefix = getPrefix(element);
112 return getNamespaceURI(element, prefix);