Search  

XML CDATA HELP PLEASE

HomeForumsHelp NeededXML CDATA help please
Default-profile peejay
43 posts
Bought between 10 and 49 items

Hi,

I need to drop a CDATA html link into this xml where it says DOWNLOAD . Can someone please help me with it? I’ve tried loads of different combinations but it’s not working and it’s killing me!

Thanks in advance!

Posted 2 months ago
54138 Pdesignx
447 posts
Exclusive author Author was featured Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

here is an example for you…

<somenode>
   <![CDATA[ put your html code or what else here... ]]>
</somenode>

Posted 2 months ago
Default-profile peejay
43 posts
Bought between 10 and 49 items

Hi, thanks for your reply.

Not sure why my code wasn’t in my post…let me try again…

I’ve tried putting the CDATA code next to description= but it doesn’t work. Where do I need to put it in this code?

Posted 2 months ago
Default-profile peejay
43 posts
Bought between 10 and 49 items
Posted 2 months ago
Default-profile peejay
43 posts
Bought between 10 and 49 items

Hey! The code won’t show up in my post!

Posted 2 months ago
45952 Yvo
160 posts
Exclusive author Referred at least one person Sold between 1 000 and 5 000 dollars Bought between 1 and 9 items

Use pastie.org and post the link to your pastie.

Posted 2 months ago
Default-profile peejay
43 posts
Bought between 10 and 49 items

Hmmm…sorry. Like this?

http://pastie.org/268096

Posted 2 months ago
9879 michaelhejja
281 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 10 and 49 items

you can’t place CDATA in an attribute. It has to be inside of an actual node like Pdesignx has shown.

Posted 2 months ago
Default-profile peejay
43 posts
Bought between 10 and 49 items

Ah I see. Triworks have told me I could put a link in there using CDATA . Perhaps I misunderstood.

Thanks for the info – Any ideas what I need to do then?

Posted 2 months ago
52173 dSKY
549 posts
Exclusive author Author was featured Referred at least one person Sold between 10 000 and 50 000 dollars Bought between 1 and 9 items
use your images tag like this:

<images id="1" img="gallery/img2.jpg" thumbnail="gallery/tmb2.jpg" caption="IMAGE 2" description="DOWNLOAD"><![CDATA[Your HTML text goes here]]></images>

you will also need to change the parsing procedure for your file. Posted 2 months ago