You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Mohamed Fizal Ihsan (JIRA)" <xm...@xml.apache.org> on 2004/11/02 19:52:42 UTC
[jira] Created: (XMLBEANS-81) Cursor selectPath() method not working with predicates
Cursor selectPath() method not working with predicates
------------------------------------------------------
Key: XMLBEANS-81
URL: http://nagoya.apache.org/jira/browse/XMLBEANS-81
Project: XMLBeans
Type: Bug
Components: Cursor
Versions: Version 1.0.3
Environment: Windows XP, JDK 1.4.2
Reporter: Mohamed Fizal Ihsan
XmlCursor.selectPath() throws "java.lang.UnsupportedOperationException" when I try to use predicates selecting a node.
Sample XML:
<MatchedRecords>
<MatchedRecord>
<TableName>
ABC
</TableName>
<MatchedRecord>
<MatchedRecord>
<TableName>
BCD
</TableName>
<MatchedRecord>
<MatchedRecords>
Code snippet:
cursor.selectPath("$this//MatchedRecord[TableName=\"ABC\"]/TableName");
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.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
[jira] Closed: (XMLBEANS-81) Cursor selectPath() method not working with predicates
Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-81?page=all ]
Jacob Danner closed XMLBEANS-81:
--------------------------------
Assign To: (was: Yana Kadiyska)
The following case has been automated in the xmlbeans detailed suite and is passing, closing.
String xpathDoc = "<MatchedRecords>" +
" <MatchedRecord>" +
" <TableName>" +
"ABC" +
"</TableName>" +
" </MatchedRecord>" +
" <MatchedRecord>" +
" <TableName>\n" +
" BCD \n" +
" </TableName> \n" +
" </MatchedRecord> \n" +
"</MatchedRecords> ";
XmlObject xb81 = XmlObject.Factory.parse(xpathDoc);
XmlObject[] resSet = xb81.selectPath("$this//MatchedRecord[TableName=\"ABC\"]/TableName");
assertEquals(resSet.length , 1);
XmlCursor cursor = xb81.newCursor();
cursor.selectPath("$this//MatchedRecord[TableName=\"ABC\"]/TableName");
> Cursor selectPath() method not working with predicates
> ------------------------------------------------------
>
> Key: XMLBEANS-81
> URL: http://issues.apache.org/jira/browse/XMLBEANS-81
> Project: XMLBeans
> Type: Bug
> Components: Cursor
> Versions: Version 1.0.3
> Environment: Windows XP, JDK 1.4.2
> Reporter: Mohamed Fizal Ihsan
> Fix For: Version 2 Beta 1
>
> XmlCursor.selectPath() throws "java.lang.UnsupportedOperationException" when I try to use predicates selecting a node.
> Sample XML:
> <MatchedRecords>
> <MatchedRecord>
> <TableName>
> ABC
> </TableName>
> <MatchedRecord>
> <MatchedRecord>
> <TableName>
> BCD
> </TableName>
> <MatchedRecord>
> <MatchedRecords>
> Code snippet:
> cursor.selectPath("$this//MatchedRecord[TableName=\"ABC\"]/TableName");
--
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
-
For more information on JIRA, 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
[jira] Resolved: (XMLBEANS-81) Cursor selectPath() method not working with predicates
Posted by "Yana Kadiyska (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-81?page=history ]
Yana Kadiyska resolved XMLBEANS-81:
-----------------------------------
Resolution: Fixed
Fix Version: Version 2 Beta 1
> Cursor selectPath() method not working with predicates
> ------------------------------------------------------
>
> Key: XMLBEANS-81
> URL: http://issues.apache.org/jira/browse/XMLBEANS-81
> Project: XMLBeans
> Type: Bug
> Components: Cursor
> Versions: Version 1.0.3
> Environment: Windows XP, JDK 1.4.2
> Reporter: Mohamed Fizal Ihsan
> Assignee: Yana Kadiyska
> Fix For: Version 2 Beta 1
>
> XmlCursor.selectPath() throws "java.lang.UnsupportedOperationException" when I try to use predicates selecting a node.
> Sample XML:
> <MatchedRecords>
> <MatchedRecord>
> <TableName>
> ABC
> </TableName>
> <MatchedRecord>
> <MatchedRecord>
> <TableName>
> BCD
> </TableName>
> <MatchedRecord>
> <MatchedRecords>
> Code snippet:
> cursor.selectPath("$this//MatchedRecord[TableName=\"ABC\"]/TableName");
--
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