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

Decoding attribute and element with same name but different values #250

Open
azhabort opened this issue Sep 6, 2022 · 1 comment
Open

Comments

@azhabort
Copy link

azhabort commented Sep 6, 2022

Hello!
@MaxDesiatov thanks for this great tool.

Is it possible to decode object with attribute and child element with same name but different values?
For example xml:

<Shelf List="first">
	<List>
		<Book id="1"/>
		<Book id="2"/>
	</List>
</Shelf>
@Joannis
Copy link
Member

Joannis commented Sep 13, 2022

Hey @azhabort you should be able to use an array for this.

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