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 10-20-2012, 10:14 PM   PM User | #1
needsomehelp
Regular Coder

 
Join Date: Oct 2009
Posts: 306
Thanks: 4
Thanked 3 Times in 3 Posts
needsomehelp can only hope to improve
Can I change the order XML details are shown?

I have the following test file that I created and wondered if it is possible to change the order of the XML details ?

Code:
<?xml version="1.0" encoding="windows-1252" ?>
    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>TITLE</title>
        <description>.</description>
        <link>http://www.site.com</link>
        <language>en</language>
        <copyright>http://www.site.com</copyright>
        <pubDate>Sat, 20 Oct 2012 22:05:53 GMT</pubDate>
        <lastBuildDate>Sat, 20 Oct 2012 22:05:53 GMT</lastBuildDate>
        <generator>http://www.site.com</generator>
        <ttl>30</ttl>
        <atom:link href="http://www.site.com/rss.xml" rel="self" type="application/rss+xml" />
        <image>
          <title>TITLE - .</title>
          <url>http://www.site.com/images/rssFeedFolderLogo.gif</url>
          <link>http://www.site.com</link>
          <description>TITLE - .</description>
        </image>
        <item>
          <title><![CDATA[4 title]]></title>
          <description><![CDATA[4 desc]]></description>
          <link><![CDATA[http://www.site.com/search.php?iid=345&h=r]]></link>
          <guid isPermaLink="true"><![CDATA[http://www.site.com/search.php?iid=345&h=r]]></guid>
          <pubDate>Sat, 20 Oct 2012 19:24:02 GMT</pubDate>
		  <source url="http://www.site.com/">http://www.site.com</source>
        </item>
        <item>
          <title><![CDATA[3]]></title>
          <description><![CDATA[3]]></description>
          <link><![CDATA[http://www.site.com/search.php?iid=344&h=r]]></link>
          <guid isPermaLink="true"><![CDATA[http://www.site.com/search.php?iid=344&h=r]]></guid>
          <pubDate>Sat, 20 Oct 2012 19:23:42 GMT</pubDate>
		  <source url="http://www.site.com/">http://www.site.com</source>
        </item>
        <item>
          <title><![CDATA[2]]></title>
          <description><![CDATA[2]]></description>
          <link><![CDATA[http://www.site.com/search.php?iid=343&h=r]]></link>
          <guid isPermaLink="true"><![CDATA[http://www.site.com/search.php?iid=343&h=r]]></guid>
          <pubDate>Sat, 20 Oct 2012 19:23:24 GMT</pubDate>
		  <source url="http://www.site.com/">http://www.site.com</source>
        </item>
        <item>
          <title><![CDATA[1]]></title>
          <description><![CDATA[1]]></description>
          <link><![CDATA[http://www.site.com/search.php?iid=342&h=r]]></link>
          <guid isPermaLink="true"><![CDATA[http://www.site.com/search.php?iid=342&h=r]]></guid>
          <pubDate>Sat, 20 Oct 2012 19:23:03 GMT</pubDate>
		  <source url="http://www.site.com/">http://www.site.com</source>
        </item>
        <item>
          <title><![CDATA[test]]></title>
          <description><![CDATA[test]]></description>
          <link><![CDATA[http://www.site.com/search.php?iid=341&h=r]]></link>
          <guid isPermaLink="true"><![CDATA[http://www.site.com/search.php?iid=341&h=r]]></guid>
          <pubDate>Sun, 13 May 2012 22:23:34 GMT</pubDate>
		  <source url="http://www.site.com/">http://www.site.com</source>
        </item>
      </channel>
    </rss>
this is the order it currently show in...



4 title
20 October 2012 20:24

4 desc


3 title
20 October 2012 20:23

3


2
20 October 2012 20:23

2


1
20 October 2012 20:23

1


test
13 May 2012 23:23

test






what I wish to have if it is possible is like this...



title1
desc1
date1

title2
desc2
date2

and so on...
needsomehelp is offline   Reply With Quote
Old 10-22-2012, 04:03 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
You can place xml elements anywhere on you html page and in any order want. If you would give us your html code for the way your doing it now we could show how to change that.
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 11:40 PM.


Advertisement
Log in to turn off these ads.