We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,285 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

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 <Road><Car><Driver>. I have a hard time to figure out the XPath syntax. For example, when do I have to use Road/Name 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.

1
Contributor
0
Replies
1
View
ttback
Newbie Poster
10 posts since Oct 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.5213 seconds using 2.65MB