Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-81

Cursor selectPath() method not working with predicates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 1.0.3
    • Version 2 Beta 1
    • Cursor
    • None
    • Windows XP, JDK 1.4.2

    Description

      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");

      Attachments

        Activity

          People

            Unassigned Unassigned
            md_fizal Mohamed Fizal Ihsan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: