Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-20-2012, 08:39 AM   PM User | #1
needsomehelp
Regular Coder

 
Join Date: Oct 2009
Posts: 307
Thanks: 4
Thanked 3 Times in 3 Posts
needsomehelp can only hope to improve
how to add image to each item in feed ?

I have been trying to add an image but so far all I have been able to do is add the image as media using the <enclosure> method, but this causing the xml to fail validation. I have since then found out that this is for mp3 and not images. so been using the wrong method all along.

What I wish to do is add an image to each and every <item> in the feed.

How do I do this ?
needsomehelp is offline   Reply With Quote
Old 12-20-2012, 01:32 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,399
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
xml is for transferring text. an image can not be transferred in it. But you can send the url of the image and use that to retrieve the image. Problem I see with that is enormously high band-widths.

Next thought was to transfer image into ascii code like they did in the old emails. I did find this article http://www.codeproject.com/Articles/...in-an-XML-File. Good luck.
sunfighter is offline   Reply With Quote
Old 12-20-2012, 04:54 PM   PM User | #3
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,427
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
Quote:
Originally Posted by sunfighter View Post
an image can not be transferred in it.
What about SVG?
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary
https://alexvincent.us/blog
Alex Vincent is offline   Reply With Quote
Old 12-20-2012, 10:11 PM   PM User | #4
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,399
Thanks: 18
Thanked 352 Times in 351 Posts
sunfighter is on a distinguished road
Possible Alex anything as long as it's text should work. I just have never done it. So can not say for real.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:43 AM.


Advertisement
Log in to turn off these ads.