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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML newbie: How do you put a hyperlink in the XML file here? 1

Status
Not open for further replies.

ColonelBlue

Technical User
Jun 24, 2004
110
US
XML newbie: How do you put a hyperlink in the XML text here?

<?xml version="1.0"?>
<inventors>
<person>
<name>Thomas Edison</name>
<comment>Inventor of many things such as the incandescent lightbulb.</comment>
</person>
<person>
<name>Doug Engelbart</name>
<comment>Invented the mouse at the Stanford Research Institute</comment>
</person>
</inventors>

Thank you!
 
You mean, something like this?
[ignore]
<name>&lt;a href=&quot; Edison&lt;/a&gt;</name>
[/ignore]

When storing certain values in XML that are used by XML itself, you must escape them by replacing them with their entity representations:

Code:
&    &amp;
'    &apos;
"    &quot;
<    &lt;
>    &gt;

Chip H.

____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
It depends on how you're displaying the XML. If you're just pointing Internet Explorer to the .xml file, you'll get what you saw. If you want it to show up as a hyperlink, you'll need to display the element inside an ASP page or other HTTP type output.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top