Jump to content

Xpath= Help, Thanks


War3zuk

Recommended Posts

I must of understood the coding wrong cos I cant get anything to load up from multiple lines of code lol.... Can anyone with a decent understanding of this explain whats wrong with the following code, Thanks....

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply 9mm" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply 44Mag" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply 762mm" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply Shotgun" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply ShotgunSlug" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

 

<configs>

<append xpath="/recipes">

<recipe name="Ammo Supply 32mm" count="1">

<ingredient name="Generic Ammo Supply" count="1"/>

</recipe>

</append>

</configs>

Link to comment
Share on other sites

I must of understood the coding wrong cos I cant get anything to load up from multiple lines of code lol.... Can anyone with a decent understanding of this explain whats wrong with the following code, Thanks....

 

You have too many configs tags for one and you should need only one append in this case

 

try this

<configs>
   <append xpath="/recipes">
       <recipe name="Ammo Supply 9mm" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>

       <recipe name="Ammo Supply 44Mag" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>

       <recipe name="Ammo Supply 762mm" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>

       <recipe name="Ammo Supply Shotgun" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>

       <recipe name="Ammo Supply ShotgunSlug" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>

       <recipe name="Ammo Supply 32mm" count="1">
           <ingredient name="Generic Ammo Supply" count="1"/>
       </recipe>
   </append>
</configs>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...