Oracle
1Z0-434 · Question #45
Given the following XML document, which two XPath expressions return the same result? <?xml version ="1.0" encoding ="UTF ?8">; <bookstore> <book category="COOKING"> <title lang="en">Everyday…
The correct answer is D. bookstore//author/text (). See the full explanation below for the reasoning.
Question
Given the following XML document, which two XPath expressions return the same result? <?xml version ="1.0" encoding ="UTF ?8">; <bookstore> <book category="COOKING"> <title lang="en">Everyday Italian Treats</title> <author>George Smith</author> <year>2009</year> <price>30.00</price> </book> <book category="WEB"> <title lang="en">Getting Started with XPath</title> <author>Tammy Lee</author> <author>SergieLadloff</author> <year>2011</year> <price>49.99</price> </book> </bookstore>
Options
- Abookstore/book/author
- Bbookstore/book/author/text ()
- Cbookstore/book/author/*
- Dbookstore//author/text ()
- E//author/@text
- F//author/*text
How the community answered
(32 responses)- A6% (2)
- D81% (26)
- E3% (1)
- F9% (3)
Community Discussion
No community discussion yet for this question.