Christophe Marchand
2012-02-22 17:30:09 UTC
Hi !
Element.query("count(//document[@imported])"); throws this exception :
nu.xom.XPathTypeException: XPath expression count(//document[@imported])
returned a java.lang.Double instead of a node-set.
at nu.xom.JaxenConnector.selectNodes(Unknown Source)
at nu.xom.Node.query(Unknown Source)
at nu.xom.Node.query(Unknown Source)
Is there a workaround, or should I use
Element.query("count(//document[@imported])").size() instead ?
Which workaround for avg(...) functions ?
Thanks in advance,
Christophe
Element.query("count(//document[@imported])"); throws this exception :
nu.xom.XPathTypeException: XPath expression count(//document[@imported])
returned a java.lang.Double instead of a node-set.
at nu.xom.JaxenConnector.selectNodes(Unknown Source)
at nu.xom.Node.query(Unknown Source)
at nu.xom.Node.query(Unknown Source)
Is there a workaround, or should I use
Element.query("count(//document[@imported])").size() instead ?
Which workaround for avg(...) functions ?
Thanks in advance,
Christophe