Skip to content

Parsing XML with repetitive tags #31

@Kailasht1

Description

@Kailasht1

Lets say I have a xml data like below

<Root> 
 <Person id = 111>
  <name>xyz</name>
 </Person>
 <Person id = 222>
  <name>abc</name>
 </Person>
 <Person id = 333>
  <name>mno</name>
 </Person>
</Root> 

if there was an error parsing second row (id=222), there is no way I found I could omit that row from ParseResult because errors are captured at a file level rather than at a row (Person tag) level.
In this case it will return PartialParseSuccess object with deserialized objects and errors separated.
how do we handle such cases?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions