Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing XML

XML XLink:



XLink (XML Linking Language) is an XML-based language used to create and describe links between resources. It provides a standard way to represent links within XML documents, allowing for the association of different parts of documents or even different documents themselves.

Here's a simple explanation with an example:

Suppose you have two XML documents, one representing a list of books and another representing a list of authors. You want to create links between the books and their respective authors using XLink.

Here's the XML document representing the list of books:

        

Example

<library> <book xlink:type="simple" xlink:href="author1.xml"> <title>The Great Gatsby</title> <author>F. Scott Fitzgerald</author> <year>1925</year> </book> <book xlink:type="simple" xlink:href="author2.xml"> <title>To Kill a Mockingbird</title> <author>Harper Lee</author> <year>1960</year> </book> </library>

And here's the XML document representing the list of authors (author1.xml and author2.xml):

        

Example

<authors> <author id="01"> <name>Mohd Jeeshan</name> <birth_year>2000</birth_year> </author> <author id="02"> <name>Ajruddin</name> <birth_year>2000</birth_year> </author> </authors>

In the above example:

XLink provides a standardized way to create links within XML documents, enabling easy navigation and association of resources.





Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java