[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Resolved: (XMLBEANS-369) selectPath with XMLBeans engine
From:       "Cezar Andrei (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2008-04-17 19:55:22
Message-ID: 103278686.1208462122287.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Cezar Andrei resolved XMLBEANS-369.
-----------------------------------

    Resolution: Fixed

Fixed with rev 649251

> selectPath with XMLBeans engine returns incorrect results
> ---------------------------------------------------------
> 
> Key: XMLBEANS-369
> URL: https://issues.apache.org/jira/browse/XMLBEANS-369
> Project: XMLBeans
> Issue Type: Bug
> Components: XPath
> Affects Versions:  Version 2.3
> Reporter: Radu Preotiuc-Pietro
> Assignee: Cezar Andrei
> Fix For:  Version 2.3.1
> 
> 
> The XML:
> <a>
> <b>
> <c>val1</c>
> <d>
> <c>val2</c>
> </d>
> </b>
> <c>val3</c>
> </a>
> 
> If I execute the following XQuery: .//b/c
> I would expect one result to come back, however, using xmlbeans 2.3, it seems to \
> select the val2 c as well!? 
> The test class:
> public class TestSelectPath {
> public static void main(String[] args) {
> final XmlObject obj = \
> XmlObject.Factory.parse("<a><b><c>val1</c><d><c>val2</c></d><c>val3</c></a>"); \
> final XmlCursor c = obj.newCursor(); c.selectPath(".//b/c");
> System.out.println(c.getSelectionCount());
> c.dispose();
> }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic