I have an XPath
//*[@class]
I would like to make an XPath to select the content inside this attribute.
<li class="tab-off" id="navList0">
So in this case I would like to extract the text "tab-off", is this possible with XPath?
If you are specifically grabbing the data from an
//li[@class]
and loop through the result set to find a class with attribute "tab-off". Or
//li[@class='tab-off']
If you're in a position to hard code.
I assume you have already put your file through an XML parser like a DOMParser. This will make it much easier to extract any other values you may need on a specific tag.