7D2DSDX / SDX

SDX 0.7.x
0 stars 0 forks source link

SDX 0.7.1 - unable to append xml with <config /> in content #10

Open StompyNZ opened 6 years ago

StompyNZ commented 6 years ago

Unable to add xml with <config /> in it as the sdx parser seems to be trying to read it as a config section.

example:

<configs>
  <config name="gamestages">
    <set xpath="/*"></set>
    <append xpath="/*">
      <config startingWeight="1" scavengerGameDifficultyBonus="0" adventurerGameDifficultyBonus="0.1" nomadGameDifficultyBonus="0.2" warriorGameDifficultyBonus="0.6" survivalistGameDifficultyBonus="1.0" insaneGameDifficultyBonus="1.5" daysAliveDifficultyBonus="0.1" daysAliveChangeWhenKilled="2" diminishingReturns="0.2" />
    </append>
  </config>
</configs>

The valid xml inside the append causes an error on build (saying cant find name attribute) so I'm guessing the config nodes are being found regardless of depth in the xml