icon

Usetutoringspotscode to get 8% OFF on your first order!

Consider the XML file

Consider the XML file

<purse>

<coin>

<value>0.5</value>

<name lang=”en”>half dollar</name>

</coin>

<coin>

<value>0.25</value>

<name lang=”en”>quarter</name>

</coin>

</purse>

What are the values of the following XPath expressions?

a. /purse/coin[1]/value

b. /purse/coin[2]/name

c. /purse/coin[2]/name/@lang

d. name(/purse/coin[2]/*[1])

e. count(/purse/coin)

f. count(/purse/coin[2]/name)

You can leave a response, or trackback from your own site.

Leave a Reply

Powered by WordPress | Designed by: Premium WordPress Themes | Thanks to Themes Gallery, Bromoney and Wordpress Themes