How to Define XLink Syntax in XML

In this article i will explain XLink Syntax.
  • 1601

The <a> element defines a hyperlink. but this is not use in XML. In XML documents, you can use any element names you want.

Let's Define XLink Syntax with the help of following example.

XLink Syntax

<?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"      

    temp_href="http://myweb.com/mydogs/anton.gif"

    xlink:show="new">

      My pet dog name is Anton.

    </description>

  </dog>

</pettydog>

 

Explanation About XLink

  •  XLink:title: Description of the meaning of a link.

  •  XLink:type:Decides the type of XLink .

  • XLink:href: Hold a URI that locates a resource. 

  • XLink:show: show the  presented resources

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.