• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

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

usHallgrim

New member
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