XPointer

From BC$ MobileTV Wiki
Revision as of 17:24, 5 June 2013 by Joe (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

XPointer is a method of combining XPath with XLink by use of an anchor marker ("#" sign). To simplify, think hash ("#") links down into a specific section of a page of a specific URL.


Specification



EXAMPLE

The following snippet of XML shows the OpenRecommender format

<recommendations xmlns:xlink="http://www.w3.org/1999/xlink">
   <recommendation xlink:type="simple" xlink:href="http://dog.com/dogbreeds.xml#FCRetriever" id="">
     <title>Funny Animated GIFs</title>
     <image>http://bcmoney-mobiletv.com/thumb/1_165.jpg</image>
     <link>http://bcmoney-mobiletv.com/view/165/funny-animated-gifs-4/</link>
     <description xlink:type="simple" xlink:href="http://www.metacafe.com/watch/718305/very_funny_animated_gifs/">
       You'll laugh, at least at some of them, I guarantee you.
     </description>
  </recommendation>
  ...
</recommendations>


External Links


See Also

XML | XPath | XQuery | XSLT | XLink | XML Schema | Linked Data | RDF