Workshop

Quiz

  1. Which of the following methods returns, at most, one node?

    1. index()

    2. selectSingleNode()

    3. end()

    4. b and c

    5. a, b, and c

  2. Which of the following operators have symbolic representations?

    1. Only the case sensitive ones

    2. Only the equals and not equals

    3. The case sensitive inequalities

    4. All case sensitive operators and the non-case sensitive equality.

  3. The primary differences between the selectNodes() and selectSingleNode() methods are:

    1. The selectSingleNode() method returns, at most, one node

    2. The selectNodes() method returns a list of nodes and the selectSingleNode() does not

    3. The syntax of the query criteria is different

    4. a and b

Answers

Exercises

  1. Write a query that will return all <Author> nodes in the <Catalog> database in which the <Name> of the author begins ...

Get Sams Teach Yourself XML in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.