I updated my sources and noticed Eclipse is reporting an error in CustomXmlDataStorage.java. Any ideas why eclipse/jdk 1.6.0_13 is reporting:
The method setTextContent(String) is undefined for the type Node
?
The interface and method certainly seem to exist in the rt.jar.
- Code: Select all
public boolean setNodeValueAtXPath(String xpath, String value, String prefixMappings) throws Docx4JException {
try {
getNamespaceContext().registerPrefixMappings(prefixMappings);
Node n = (Node)xPath.evaluate(xpath, doc, XPathConstants.NODE );
if (n==null) {
log.debug("xpath returned null");
return false;
}
// *** Error reported on this line ****
n.setTextContent(value);
// cache is now invalid
return true;
} catch (Exception e) {
throw new Docx4JException("Problem setting value at xpath " + xpath);
}
}
-Leigh