Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question: Hyperlink in XML

Status
Not open for further replies.

organ

Programmer
Apr 19, 2006
2
US
If this one is a question asked over and over, I apologize for that. It frustrates me a lot: how to embed a hyperlink into an xml file?
For example, I have
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html (View Source for full doctype...)>
- <html xmlns=" xml:lang="en" lang="en">
- <body>
- <p>
Moved to
<a href=" shape="rect">example.org</a>
.
</p>
</body>
</html>


How to make the 'href' work so when I click it points to the webpage? I tried xlink, it didn't work.

Thanks a lot.
 
>How to make the 'href' work so when I click it points to the webpage?
Rename the supposedly xhtml compliant .xml page to .htm. Your page as such will not validate but the browser will automatically downgrade itself to some quirk mode. If you mean within .xml itself? No, I don't think so.
 
Sorry I didn't explain well.
Yeah I mean within the .xml, I want to embed a hyper link, something like:

<a href=" shape="rect">example.org</a>

but in an xml-supported format, so if I click on the link, it brings me to the website.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top