• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

How to find correct xpath (i.e. entityclasses.xml has xpath /entity_classes)?

usHallgrim

Refugee
Hi All:

This one's probably a no-brainer for most folks but it through me for a loop for about 30 minutes so I thought I'd share. Today, I noticed that the xpath for the base entityclasses.xml seems to have an underscore in there like so > xpath="/entity_classes...". So where do you go to find out what the xpath is for the base entityclasses.xml file? I had to laugh at myself when it finally dawned on me to check the root element within entityclasses.xml.

As I'm a noob I'm not 100% sure but the root element (the element that encompasses the entire xml file you are trying to reference -- in this case <entity_classes></entity_classes>) is the xpath you are looking for.

 
Back
Top