Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When you have an xml structure like: ```xml <dataset> <object> <id>1</id> <name>foo</name> </object> <object> <id>2</id> <name>bar</name> </object> </dataset> ``` It should create a document like: ```json { "object": [{ "id": 1, "name": "foo" }, { "id": 2, "name": "bar" } ] } ``` Before this patch, the created document was: ```json { "object" : { "id" : 2, "name" : "bar" } } ``` So first items were totally overwritten. Closes #592.
- Loading branch information
Showing
3 changed files
with
96 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0"?> | ||
<dataset> | ||
<object> | ||
<id>1</id> | ||
<name>foo</name> | ||
</object> | ||
<object> | ||
<id>2</id> | ||
<name>bar</name> | ||
</object> | ||
</dataset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters