Bugs item #1398188, was opened at 2006-01-06 00:33
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1398188&group_id=16035

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dr Matthew Graham (mjgraham)
Assigned to: Nobody/Anonymous (nobody)
Summary: Invalid XPath exception

Initial Comment:
I am using dom4j-1.6.1.jar and Java 1.5.0_05: my code is

Map uris = new HashMap();
uris.put("vo", "http://www.ivoa.net/xml/VOEvent/v1.1";);
XPath query = document.createXPath("/vo:VOEvent/@role");
query.setNamespaceURIs(uris);
String type = query.valueOf(document);

This causes:

org.dom4j.InvalidXPathException: Invalid XPath
expression: '/vo:VOEvent/@role'. Caused by:
org/jaxen/dom4j/Dom4jXPath
        at
org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:362)
        at
org.dom4j.xpath.DefaultXPath.<init>(DefaultXPath.java:59)
        at
org.dom4j.DocumentFactory.createXPath(DocumentFactory.java:230)
        at
org.dom4j.tree.AbstractNode.createXPath(AbstractNode.java:207)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=1398188&group_id=16035


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to