Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing XML with repetitive tags #31

Open
Kailasht1 opened this issue Apr 15, 2020 · 1 comment
Open

Parsing XML with repetitive tags #31

Kailasht1 opened this issue Apr 15, 2020 · 1 comment

Comments

@Kailasht1
Copy link

Kailasht1 commented Apr 15, 2020

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

@tmccombs
Copy link
Contributor

tmccombs commented Jan 4, 2021

Could you provide some sample code for what you are trying to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants