-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse elements in array having attributes correctly
#88 If elements in array have some attributes, it parses and infers the data incorrectly. For example, the xml below: ```xml <ROWSET> <ROW> <one attr="value">i'm one</one> <one attr="value">i'm one</one> </ROW> </ROWSET> ``` produces the results below: ``` +----+ | one| +----+ |null| |null| +----+ ``` This was because of mistakes to deal with elements in `ArrayType`. This PR fixes this. Also, I changed some relevant functions name to look relevant and removed a unused test file. Author: hyukjinkwon <gurwls223@gmail.com> Closes #89 from HyukjinKwon/ISSUE-88-elements-attributes.
- Loading branch information
1 parent
e05cfc6
commit 8f423b6
Showing
6 changed files
with
82 additions
and
98 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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<ROWSET> | ||
<ROW><id>1</id> | ||
<name>Johnson, Smith, and Jones Co.</name><age>45</age> | ||
<Remark>Pays on time</Remark> | ||
</ROW> | ||
<ROW> | ||
<id>2</id> | ||
<name>Sam Mad Dog Smith</name><amount>93</amount> | ||
</ROW> | ||
<ROW> | ||
<id>3</id><name>Barney Company</name> | ||
<age>0</age> | ||
<Remark>Great to work with | ||
and always pays with cash.</Remark> | ||
</ROW> | ||
<ROW> | ||
<id>4</id> | ||
<name>Johnsons Automotive</name><age>2344</age> | ||
<Remark>Pays on time</Remark> | ||
</ROW> | ||
</ROWSET> | ||
<people> | ||
<person> | ||
<age born="1990-02-24">25</age> | ||
<name>Hyukjin</name> | ||
</person> | ||
<person> | ||
<age born="1985-01-01">30</age> | ||
<name>Lars</name> | ||
</person> | ||
<person> | ||
<age born="1980-01-01">30</age> | ||
<name>Lion</name> | ||
</person> | ||
</people> |
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