Xml un aiutino.

E

Eli

Ciao,
avrei bisogno di un aiuto. Non conoscendo xml mi servirebbe sapere
come "attaccare" un link ad uno di questi elementi:
<?xml version="1.0" encoding="iso-8859-1"?>


<trips>

<trip name="01-01-2005">
<description>The incredible variety of Napa Valley
includes both natural beauty as well as a stunning array of
vineyards, parks, and estates. While best known for its wine, this
region offers far more, including world class restaurants and cultural
events.</description>
<cost>1230</cost>
<tapes>2</tapes>
<image> images/bigsur.jpg</image>
</trip>


</trips>

nelle description c'è un testo dove vorrei inserire un link tipo html
href
Come devo modificare il tag?
Grazie
 
S

shaun roe

Eli said:
Ciao,
avrei bisogno di un aiuto. Non conoscendo xml mi servirebbe sapere
come "attaccare" un link ad uno di questi elementi:
<?xml version="1.0" encoding="iso-8859-1"?>


<trips>

<trip name="01-01-2005">
<description>The incredible variety of Napa Valley
includes both natural beauty as well as a stunning array of
vineyards, parks, and estates. While best known for its wine, this
region offers far more, including world class restaurants and cultural
events.</description>
<cost>1230</cost>
<tapes>2</tapes>
<image> images/bigsur.jpg</image>
</trip>


</trips>

nelle description c'è un testo dove vorrei inserire un link tipo html
href
Come devo modificare il tag?
Grazie

If you want a real html link, you'll have to transform the document;
otherwise, in theory, something like this should work:


<trips>
<trip name="01-01-2005">
<description xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:type="simple"
xlink:href="http://www.napavalley.com" >The incredible variety
of Napa Valley includes both natural beauty as well as a stunning array
of vineyards, parks, and estates. While best known for its wine, this
region offers far more, including world class restaurants and cultural
events.</description>
<cost>1230</cost>
<tapes>2</tapes>
<image> images/bigsur.jpg</image>
</trip>
</trips>

.....this is simply from
http://www-128.ibm.com/developerworks/xml/library/x-xlink/

...but I've got to admit that on my mac at least, I never managed to get
a browser to understand it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,849
Latest member
Fira

Latest Threads

Top