O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The xlink:type Attribute

The xlink:type attribute defines the type of XLink you're creating. You can set this attribute to these values:

  • simple— Creates a simple link.

  • extended— Creates an extended link.

  • locator— Creates a locator link that points to a resource.

  • arc— Creates an arc with multiple resources and various traversal paths. This attribute sets restrictions on paths where a link goes.

  • resource— Creates a resource link, which indicates a specific resource.

  • title— Creates a title link. Such elements are useful, for example, when human-readable label information needs further element markup or when multiple titles are necessary for internationalization purposes.

We've already seen how to create simple links:

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required