How to use XPointer in XML

In this article i will explain that what is the XPointer in XML.
  • 1800

XPointer Introduction

  • XPointer stands for XML Pointer Language.

  • XPointer used only fragment identifier

  • XPointer combined with XLink and XPath.

  • XPointer define hyperlink for a specific parts in XML document.

  • XPointer support addressing into the internal structures of XML document.

  • XPointer provided the flexible and robust functionality.

  • XPointer is W3C recommendation.

XPointer Example

For example we could dynamically identify our data set with the of XLink.

<?xml version="1.0" encoding="utf-8" ?>

<itemLocation xmlns:xlink="http://www.w3.org/1999/xlink"

xlink:type="extended">

       <itemlocation xlink:type="resource"

       xlink:label="location"

       itemkey="1">

              mcnsolution>

       </itemlocation>

       <item xlink:type="locator"

       xlink:href="acme.mfg.com/invoice.xml#itemkey(1)"

       xlink:label="item"/>

       <getdetail xlink:type="arc"

       xlink:show="embed"

       xlink:to="location"

       xlink:from="item"/>

</itemLocation>

Further Readings

You may also want to read these related articles :

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.