Bugs item #1186719, was opened at 2005-04-20 14:42
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=1186719&group_id=16035

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Thomas Fromm (tfromm)
Assigned to: Nobody/Anonymous (nobody)
Summary: XPath creates Error with 1.6 and works with 1.5.2

Initial Comment:
The following XPath works with 1.5.2.: 
 
/Lookup/MappingTables/[EMAIL PROTECTED]'sdfsdfsd' AND 
@type='XML'] 
 
and with 1.6 i get exception: 
Exception occurred during event dispatching: 
org.dom4j.InvalidXPathException: Invalid XPath  
expression: /Lookup/MappingTables/[EMAIL PROTECTED]'sdfsdfsd' 
AND @type='XML']  
Expected: ] 
        at 
org.dom4j.xpath.DefaultXPath.parse(DefaultXPath.java:360) 
        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) 
        at 
org.dom4j.tree.AbstractNode.selectSingleNode(AbstractNode.java:183) 
 
Writing "AND" lowercase works with 1.6. 
 
Maybe writing "AND" lowercase (as works in 1.5.2) is wrong 
XPath, but keeping the logic backward compatible would be 
better i think. 

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

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


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
dom4j-dev mailing list
dom4j-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to