5
Jennifer Widom Querying XML XPath

Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

  • Upload
    others

  • View
    20

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

Jennifer Widom

Querying XML

XPath

Page 2: Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

Jennifer Widom

XPath Querying XML

Not nearly as mature as Querying Relational Newer No underlying algebra

Sequence of development 1. XPath

2. XSLT

3. XQuery

Page 3: Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

Jennifer Widom

XPath XPath

Think of XML as a tree

= Path expressions + Conditions Basic

Constructs

Page 4: Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

Jennifer Widom

XPath XPath

Built-in functions (lots of them)

Navigation “axes” (13 of them)

= Path expressions + Conditions

Page 5: Querying XML XPath - Artificial Intelligenceopenclassroom.stanford.edu/.../old-site/docs/pdfs/XPath.pdf · Querying XML XPath . Jennifer Widom XPath Querying XML Not nearly as mature

Jennifer Widom

XPath More Details

XPath queries operate on & return sequence of elements XML document

XML stream

Sometimes result can be expressed as XML, not always

Demo: XPath examples

over bookstore data