What is XLink in XML

In this article I will explain that what is the XLink.
  • 2102

XLink Introduction

  • XLink is a generalization of the HTML link concept. 
  • XLink is the form of XML Linking Language. 
  • XLink used to specify link to documents or creating hyperlink in XML documents. 
  • XLink allow you to define how will be used and viewed.

XLink supports two type Link

  1. Simple Links (Like as HTML)
  2. Extended Links( Like as Multiple Resources together)

Example

Following Example Define The XLink

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

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

  <dog>

    <description xlink:type="simple"

    xlink:href="http://myweb.com/mydogs/anton.gif"

    xlink:show="new">

      Anton is my favorite dog.

    </description>

  </dog>

</pettydog>

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

© 2019 DotNetHeaven. All rights reserved.