Skip to content

Conversation

srebhan
Copy link
Contributor

@srebhan srebhan commented Mar 11, 2024

When parsing nested arrays such as

{
	"values": [
		[
			1,
			2,
			3
		]
	]
 }

the XML equivalent looks like

<?xml version="1.0" encoding="utf-8"?>
<root>
	<values>
		<>1</>
		<>2</>
		<>3</>
	</values>
</root>

with a missing element name for the inner (an all additional nestings) array elements.

This PR propagates the node name down the processing stream to also name the inner elements according to the parent. For the example above this results in

<?xml version="1.0" encoding="utf-8"?>
<root>
	<values>
		<values>1</values>
		<values>2</values>
		<values>3</values>
	</values>
</root>

@srebhan
Copy link
Contributor Author

srebhan commented Mar 15, 2024

@zhengchun any chance you take a look?

@zhengchun zhengchun merged commit 5db0be8 into antchfx:master Mar 15, 2024
@srebhan
Copy link
Contributor Author

srebhan commented Mar 15, 2024

@zhengchun thanks!!! ❤️

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

Successfully merging this pull request may close these issues.

2 participants