Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-366

Get descendent does not support xpaths that end in list values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • Istanbul Release
    • None
    • None

      currently, we don't not support cps path queries with an xpath that ends in a list value

      e.g.
      If I have the following data
      (6, 1001, 3001, 4, '/bookstore/categories[@name="kids"]/books/chapters[@code="1"]', '

      {"code": "1"}

      ');
      and try execute the following cps path query
      //chapters[@code="1"]

      I get an empty value

      https://docs.onap.org/projects/onap-cps/en/latest/cps-path.html

            Unassigned Unassigned
            niamhcore niamhcore
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: