Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-10976

XMLParser should support parsing multiple records

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0
    • Component/s: Pipeline Plugins, Pipelines
    • Labels:
      None
    • Release Notes:
      Added an xml parser Hydrator plugin that can parse out multiple records from a single xml document.
    • Rank:
      1|hzzmiv:

      Description

      Suppose I have a field that is the following:

      <items>
        <item>
         <id>123</id>
         <name>ashau</name>
        </item>
        <item>
          <id>456</id>
          <name>sree</name>
        </item>
        ...
      </items>
      

      and I want the parser to return all the items in the xml. The XML Parser only returns the very first item. It should be able to return all of them.

        Attachments

          Activity

            People

            • Assignee:
              ashau Albert Shau
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: