Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    434
    Thanks
    7
    Thanked 3 Times in 3 Posts

    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...

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,174
    Thanks
    23
    Thanked 601 Times in 600 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •