cookxml.cookxml
Class Util
java.lang.Object
cookxml.cookxml.Util
- public class Util
- extends Object
- Since:
- CookXml 3.0
Constructor Summary |
Util()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
getAttributeNodeNS
public static Attr getAttributeNodeNS(Element elm,
String namespaceURI,
String localName)
- Retrieve the attribute node that corresponds to the namespaceURI and localName.
This function avoids the crimson bug in Sun SDK 1.4.2.
- Parameters:
elm
- the DOM element.namespaceURI
- the namespace of the attribute node to be matched. This value can be null.localName
- the attribute name of the attribute node to be matched.
\
getAttributeNode
public static Attr getAttributeNode(Element elm,
String namespaceURI,
String localName)
- Retrieve the attribute node that corresponds to the namespaceURI and localName.
If not found, and if the namespace of the tag is null, then try to retrieve the
attribute with null namespace and the localName.
- Parameters:
elm
- the DOM element.namespaceURI
- the namespace of the attribute node to be matched. This value must not be null.localName
- the attribute name of the attribute node to be matched.
\