Hi:
When I compile the petstore demo there is a error with "XMLDocumentUtils.java": Error #: 300 : method getAttributeNS(java.lang.String, java.lang.String) not found in interface org.w3c.dom.Element at line 189, column 32"
The correspond code snippet is below:
public static String getAttributeNS(Element element, String nsURI, String name, boolean optional) throws XMLDocumentException {
String value = element.getAttributeNS(nsURI, name);
if (value == null && !optional) {
throw new XMLDocumentException("Attribute " + name + " of " + element.getTagName() + " expected.");
}
return value;
}
How to deal with the problem?
Thanks!
Discussions
EJB programming & troubleshooting: compile petstore error with not find in org.w3c.dom.Element
-
compile petstore error with not find in org.w3c.dom.Element (0 messages)
- Posted by: John Lee
- Posted on: February 20 2003 22:56 EST