You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Yana Kadiyska (JIRA)" <xm...@xml.apache.org> on 2005/03/31 21:30:22 UTC

[jira] Resolved: (XMLBEANS-134) Simple XPath not working

     [ http://issues.apache.org/jira/browse/XMLBEANS-134?page=history ]
     
Yana Kadiyska resolved XMLBEANS-134:
------------------------------------

     Resolution: Fixed
    Fix Version: Version 1
                 Version 2 Beta 1
                 Version 2 Beta 2
                 Version 2

Jar issue

> Simple XPath not working
> ------------------------
>
>          Key: XMLBEANS-134
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-134
>      Project: XMLBeans
>         Type: Bug
>   Components: XPath
>     Versions: Version 2 Beta 1
>     Reporter: Roshan Punnoose
>      Fix For: Version 1, Version 2 Beta 1, Version 2 Beta 2, Version 2

>
> I try and run this:
> Document.selectPath("//event-ref");
> for this xml:
> ...
> <event-refs>
>  <event-ref id=".."/>
> </event-refs>
> and get this trace:
> java.lang.RuntimeException: Path too complex for xmlbeans: //event-ref
> 	at org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:156)
> 	at org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:89)
> 	at org.apache.xmlbeans.impl.newstore2.Cursor._selectPath(Cursor.java:860)
> 	at org.apache.xmlbeans.impl.newstore2.Cursor.selectPath(Cursor.java:2588)
> 	at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:427)
> 	at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.java:411)
> I have xbean_xpath.jar (2.0 beta 1), saxon8-xpath.jar, and xbean.jar on my classpath. It doesn't even look like it's using the saxon xpath api at all. What could be the problem?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org