XML and X-Link usage

110 views Asked by At

I just have a simple question: let's say I have a read only XML file, and I want to create links or make link for elements in the file. How will that be possible?

1

There are 1 answers

0
Paul Sweatte On

Use the XHTML namespace:

    <?xml version="1.0" ?>
    <root xmlns="http://www.w3.org/1999/xhtml">
    <a href="#2">link</a><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><xmp id="2">to me</xmp><pre>to click</pre>
</root>