Map Development Area (MDA)
Location:
_/_
markup
_/_
xml
_/_
xpath
_/_
xpath
| xpath |
|
|
Types:
|
-
concepts
-
data types, location steps, axes, predicates, location paths
-
example
-
//Book
-
data-types
-
node-set, boolean, number (floating-point), string -- some expression return values, some nodes -- node-sets cannot contain duplicates
-
example
-
//Book[title = "Rumsti Ramsti"]
-
Comment:
-
language for addressing parts of an XML document -- declarative node selection language -- read-only (although tools exist to build XML documents via XPath) -- not really a 'retrieval' language like SQL but often also used stand-alone
-
example
-
/BookStore/Book
-
Comment:
-
formally part of XSLT -- defined 1999, not compatible with DOM, XQuery and XML Schema
-
example
-
//Book[contains(title, "Rumsti")]/author[position() = 2]
|
|
|