nerdexam
SOA

S90-02A · Question #32

XPath expressions are often used by: Select the correct answer.

The correct answer is A. XSLT and XQuery. XPath expressions are a core dependency of both XSLT (for selecting and transforming nodes in XML documents) and XQuery (for querying and extracting data from XML), making A correct - these two technologies were essentially built around XPath as their navigation language. Why…

Service-Oriented Architecture (SOA) and XML Technology

Question

XPath expressions are often used by: Select the correct answer.

Options

  • AXSLT and XQuery
  • BXSLT and WSDL
  • CXQuery and SOAP
  • DXQuery only

How the community answered

(27 responses)
  • A
    89% (24)
  • C
    4% (1)
  • D
    7% (2)

Explanation

XPath expressions are a core dependency of both XSLT (for selecting and transforming nodes in XML documents) and XQuery (for querying and extracting data from XML), making A correct - these two technologies were essentially built around XPath as their navigation language.

Why the distractors fail:

  • B (XSLT + WSDL): WSDL describes web service interfaces and does not use XPath for navigation or querying.
  • C (XQuery + SOAP): SOAP is a messaging protocol for web services; it transports XML but does not use XPath expressions as part of its specification.
  • D (XQuery only): XQuery does use XPath, but excluding XSLT is wrong - XSLT relies on XPath to match and select nodes in the source tree.

Memory tip: Think of XPath as the "address system" for XML. XSLT and XQuery both need to point at specific nodes - XSLT to transform them, XQuery to query them - so both depend on XPath. WSDL and SOAP are about sending XML, not navigating it.

Topics

#XPath#XSLT#XQuery#XML navigation

Community Discussion

No community discussion yet for this question.

Full S90-02A Practice