Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Closed Thread
Add URL link to XML? Please help!
Old 03-04-2009, 12:31 PM Add URL link to XML? Please help!
Junior Talker

Posts: 3
Name: Kendal Richer
Trades: 0
Hi all, brand new to this site and really need some help. I'm working on getting a slideshow built in iWeb to allow URL links. The slideshow reads everything from an XML file, but I can't figure out how to add a URL link to the title that appears underneath the photo. Any help would be greatly appreciated!!

Here's part of the XML code for reference:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:iphoto="urn:iphoto:property" xmlns:iweb="http://www.apple.com/iweb" version="2.0">
  <channel>
    <title>My Photos</title>
    <link>file://localhost/Users/kendalricher/Desktop/Kendal%20Web%20Test/Site/Photos.html</link>
    <description>Lorem ipsum dolor sit amet, ligula suspendisse nulla pretium, rhoncus tempor placerat fermentum, enim integer ad vestibulum volutpat. Nisl rhoncus turpis est, vel elit, congue
wisi enim nunc ultricies sit, magna tincidunt.</description>
    <item>
      <title>22-dRC-08Holidaycard</title>
      <link>file://localhost/Users/kendalricher/Desktop/Kendal%20Web%20Test/Site/Photos.html#0</link>
      <guid isPermaLink="false">52b89c14-6848-4715-b80f-eee154ba62be</guid>
      <enclosure url="file://localhost/Users/kendalricher/Desktop/Kendal%20Web%20Test/Site/Photos_files/Media/22-dRC-08Holidaycard/22-dRC-08Holidaycard.jpg" length="0" type="image/jpeg"/>
      <iphoto:thumbnail>file://localhost/Users/kendalricher/Desktop/Kendal%20Web%20Test/Site/Photos_files/Media/22-dRC-08Holidaycard/thumb.jpg</iphoto:thumbnail>
      <iweb:micro>file://localhost/Users/kendalricher/Desktop/Kendal%20Web%20Test/Site/Photos_files/Media/22-dRC-08Holidaycard/micro.jpg</iweb:micro>
      <iweb:richTitle>&lt;div style=&quot;padding: 0px; &quot; class=&quot;image_cluster_layout_style_default_External_142_32&quot;&gt;&lt;div class=&quot;image_cluster_layout_style_default&quot;&gt;&lt;p style=&quot;padding-bottom: 0pt; padding-top: 0pt; &quot; class=&quot;Caption&quot;&gt;22-dRC-08Holidaycard&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;</iweb:richTitle>
    </item>

Last edited by chrishirst; 03-04-2009 at 12:38 PM..
kenekenner is offline
View Public Profile
 
 
Register now for full access!
Old 03-04-2009, 12:41 PM Re: Add URL link to XML? Please help!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Whatever does the parsing needs to take the <link attlist...></link> node and convert it into <a href="URI">Caption</a>
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 03-04-2009, 12:52 PM Re: Add URL link to XML? Please help!
Junior Talker

Posts: 3
Name: Kendal Richer
Trades: 0
I'm sorry... I'm pretty new to XML and coding in general. I don't understand what you're saying. Could you give me an example? Thanks sooo much for your help!
kenekenner is offline
View Public Profile
 
Old 03-04-2009, 12:53 PM Re: Add URL link to XML? Please help!
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
What Chris says is that the issue is not in the XML, but into the application/script that parse the XML to create HTML.

You cannot do anything at the XML level.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
View Public Profile Visit tripy's homepage!
 
Old 03-04-2009, 02:54 PM Re: Add URL link to XML? Please help!
Junior Talker

Posts: 3
Name: Kendal Richer
Trades: 0
OK, that makes sense. So, I know that it's a JS that reads the XML. Can I add something to the existing JS to make it read a URL link that I put in the XML? I can attach the JS if it helps...
kenekenner is offline
View Public Profile
 
Old 03-04-2009, 03:03 PM Re: Add URL link to XML? Please help!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.w3schools.com/XML/xml_to_html.asp
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Closed Thread     « Reply to Add URL link to XML? Please help!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16608 seconds with 12 queries