PDA

View Full Version : help with xml hyperlink code?



ar7ifac7
November 7th, 2007, 01:23 AM
I have looked all over for this, no clue where to put it or what to even type in. I attached my xml, all I want to do is put a hyperlink under each image description. please if someone could help it would be greatly appreciated!!!

edit: if someone could at least paste in an example or just the hyperlink code and tell me where to put it that would help out alot. thanks

borrob
November 7th, 2007, 06:44 AM
your xml structure is:


<album>
<gallery>
<image>

</image>
</gallery>
</album>


the image has attributes:
ExposureTime :
FNumber :
ExposureProgram :
LightSource :
Flash :
FocalLength :

so you could put another attribute in there
hyperlink: ....

when processing your xml you can do with the hyperlink attribute as you want...

Christov
November 7th, 2007, 06:47 AM
I seriously need to learn XML...

borrob
November 7th, 2007, 09:21 AM
I seriously need to learn XML...
it is not all that dificult.
its just a way to structure data. a bit like a database.

when you look at your xml then you'll see:
<album>
</album>

this means there is a structure album.

within this structure you have
<gallery>
</gallery>
this is again a structure, but inside album so album has 1..n galleries.

within the gallery you have
<image>
</image>
this is again a structure, but inside gallery so gallery has 1..n images.

every structure can have attributes like FocalLength :
etc...

by using xml you can structure the data for easy acces.

you see not at all that complicated....

aldomatic
November 7th, 2007, 09:46 AM
Nice post, borrob

Christov
November 8th, 2007, 04:36 AM
I could probably do that just fine, its just getting other things to read the XML data like Flash :( I'm crap at that :(

ar7ifac7
November 8th, 2007, 09:53 PM
[quote=borrob;2239714]

thank you very much, but what is the hyperlink code? is it the same as html?