Fix catalog parsing, add unit-tests

Fixes issues with conflated nodes and skipped previews in the
catalog XML.
This commit is contained in:
James Turner
2017-02-10 11:55:30 +00:00
parent 93b71e29e6
commit acb8a7a793
8 changed files with 179 additions and 9 deletions

View File

@@ -0,0 +1,25 @@
<?xml version='1.0' encoding='UTF-8'?>
<PropertyList>
<value type="int">42</value>
<thing>
<value>apple</value>
</thing>
<thing>
<value>lemon</value>
</thing>
<thing>
<value>pear</value>
</thing>
<!-- ensure explicit indexing works -->
<sub>
<value n="1">a</value>
<value n="3">b</value>
<value n="99">c</value>
<value>d</value> <!-- should be assigned n=100 -->
</sub>
</PropertyList>