954,517 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Issues with Using XPath with PMD

This thread is related to my thread on Java's forum:
http://www.daniweb.com/software-development/java/threads/408377

I don't mean to make multiple posts but I wasn't sure which of these forums this problem belongs to. I will focus on asking about the XPath part here.

I have a problem to understand XPath when it comes to nested statements. For example, if I want to select the driver in a green car on a wet road, when xml tags are nested in the order of . I have a hard time to figure out the XPath syntax. For example, when do I have to use Road/Name['string'] and when I use Road[@image='string']. There is not enough documentation on this from PMD.

If anyone can help me with this, thanks in advance.

ttback
Newbie Poster
10 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: