Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Tip: How to use XLink with XML

XLink works for basic links or for embedding external resources

Return to article.


Listing 1. Using XLink in an XML document
<?xml version="1.0"?>
<guitars xmlns="http://www.newInstance.com/about/guitars"
         xmlns:xlink="http://www.w3.org/1999/xlink">
 <guitar luthier="Bourgeois"
          xlink:type="simple"
          xlink:href="http://www.newInstance.com/about/guitars/bourgeoisOM">
  <description xlink:type="simple"
               xlink:href="http://www.newinstance.com/about/guitars/bourgeoisOM/pics/bougOM_front_full.jpg"
               xlink:actuate="onLoad" xlink:show="embed">
   This is a real beauty in a small body. Although this is an OM, I use it for
   flatpicking bluegrass as well as for producing some beautiful fingerstyle sounds.
  </description>
 </guitar>
 <guitar luthier="Bourgeois"
          xlink:type="simple"
          xlink:href="http://www.newInstance.com/about/guitars/bourgeoisD150">
  <description xlink:type="simple"
               xlink:href="http://www.newinstance.com/about/guitars/bourgeoisD150/pics/bougd150_con_rim2.jpg"
               xlink:actuate="onLoad" xlink:show="embed">
   Here's the holy grail in process. Dana Bourgeois is building this Brazilian rosewood and
   adirondack bluegrass monster right now. You'll know it's finished when you hear
   a run and your windows shatter!
  </description>
 </guitar>
</guitars>

Return to article.