David Thielen wrote:
Hello;

I have a node that is a DefaultElement with a lot of sub elements. I call:

            Node.selectNodes(“grunnbokstype='B'|'H'”);

And get:

org.dom4j.XPathException: Exception occurred evaluting XPath: grunnbokstype='B'|'H'. Exception: Unions are only allowed over node-sets

try changing | into or, like this:
grunnbokstype = 'B' or 'H'

| is for nodesets

See http://www.w3schools.com/xpath/xpath_operators.asp

regs,

David K

--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to