What is XQuery?
Answer
Xquery is a query language that is used to retrieve data from XML
documents.
XQuery is a way to query the XML data, It is built on XPath expressions and is
supported by quite a few database engines.
It can find and extract elements and attributes from XML documents.
XQuery is written in FLWOR fashion which stands for: For, Let, Where, Order by,
Return
An example of XQuery is:
for $x in doc("abc.xml")/abc_name
where $x/a>30
order by $x/b
return $x/c
What is XPATH?
Answer
XPath is a language that describes how to locate specific elements
(and attributes, processing instructions, etc.) in a document.
An XSL sublanguage designed to uniquely identify or address parts of a source
XML document, for use with XSLT.
It is based on a tree representation of XML document. It provides the ability to
navigate around the tree and to select the nodes by a variety of criteria.
The simplest XPath is /A/B/C where C is the child of B, B child of A
|
More XML Links
Answer - It is a Microsoft specified XML-messaging-based
protocol for exchanging analytical data between client applications and
servers..............
Answer - DOM is an interface-oriented Application Programming
Interface. It allows for navigation of the entire document...............
Answer - An XSL sheet or a document may have duplicate elements
and attributes. Therefore, the XML namespaces define a way to distinguish
between..............
|
|