Jump to content

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


usHallgrim

Recommended Posts

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...