Review Note
Last Update: 04/27/2023 06:00 AM
Current Deck: Software Security
New Card (Unpublished)Currently Published Content
Front
Back
No published tags.
Pending Suggestions
Field Change Suggestions:
Front
Commit #1532
Given the following Xpath command
/bookstore/book/title
What would be the code for the following?
1. To select the title of the first book
2. To select the titles of the books with price greater than 35
3. To select the titles of the books in English (field name = lang, english encoded as 'en')
4. To select the title of the book with year=2005 and price=30
/bookstore/book/title
What would be the code for the following?
1. To select the title of the first book
2. To select the titles of the books with price greater than 35
3. To select the titles of the books in English (field name = lang, english encoded as 'en')
4. To select the title of the book with year=2005 and price=30
Back
Commit #1532
/bookstore/book[1]/title
/bookstore/book[price>35]/title
/bookstore/book/title[@lang='en']
/bookstore/book[year=2005 and price=30]/title
/bookstore/book[price>35]/title
/bookstore/book/title[@lang='en']
/bookstore/book[year=2005 and price=30]/title