How to Define XLink Syntax in XML

In this article i will explain XLink Syntax.
  • 1660

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


    <description xlink:type="simple"




      My pet dog name is Anton.





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

© 2020 DotNetHeaven. All rights reserved.