ttback 0 Newbie Poster

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.