|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
XML question
im just learning xml and i have this bit code
<br> Image: <span datasrc="#xmldso" datafld="IMAGE"></span> <img name="" src="" width="32" height="32" alt=""><br /> </p> it brings in the IMAGE value from a xml doc (the value = pic1.jpg) so when the above process it write it like this. image : pic1.jpg now i want it to write pic1.jpg into the image tag so to bring a image in. anyone knoe how to do this. cheers aron. |
|
#2
|
|||
|
|||
|
ok got it sort off
<xml src="cd_catalog.xml" id="xmldso" async="false"></xml>
<p> Title: <span datasrc="#xmldso" datafld="TITLE"></span> <br />Artist: <span datasrc="#xmldso" datafld="ARTIST"></span> <br />Year: <span datasrc="#xmldso" datafld="YEAR"></span> <br /> Imagename: <span datasrc="#xmldso" datafld="IMAGE"></span> <br /> Image: <br /> <img name="test" datasrc="#xmldso" datafld="IMAGE" width="32" height="32" alt=""><br /> but now my image is located in a folder images how do i teel the image tag above to get the image from that folder. cheers aron. |
|
#3
|
||||
|
||||
|
I'm curious - what is this exactly you are doing... XML is just a data storage format... this looks like some kind if XSLT, err, stuff?
|
|
#4
|
||||
|
||||
|
I'm not exactly sure what it is you're trying to accomplish... well I understand what you're trying to do, just don't understand how you're doing it...
is that XSLT, or are you using some language to parse your HTML code? What does your XML document look like? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > XML question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|