SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 08-03-10, 05:41 PM   #1
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default XML Feed Hell

Im dying from XML Hell... I hate this and im not anywhere near finished.

Code:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:ABCD_mm="http://feed.example.com/2010/03/ABCD_mm" xmlns:ABCD_cm="http://feed.example.com/2010/03/ABCD_cm" xmlns:ABCD_nm="http://feed.example.com/2010/03/ABCD_nm" xmlns:georss="http://www.georss.org/georss" xml:lang="en">
    <title type="text">ABCD Feed</title>
    <subtitle type="text">Entertainment News</subtitle>
    <link href="http://feed.ABCD.org/"/>
    <updated>2003-12-13T18:30:02Z</updated>
    <author>
        <name>ABCD Newsdesk</name>
        <email>newsdesk@example.com</email>
    </author>
    <ABCD_nm:NewsManagement type="feed">
            <ABCD_nm:feed_type>news</ABCD_nm:feed_type>
            <ABCD_nm:feed_id>1</ABCD_nm:feed_id>
            <ABCD_nm:feed_name>ENT</ABCD_nm:feed_name>
    </ABCD_nm:NewsManagement>
    <id>urn:ABCD-com:newsfeed</id>
    <entry>
        <title type="text">Article 1</title>
        <summary type="text">Some text.</summary>
        <content type="text">Some text.</content>
        <link href="http://example.org/2003/12/13/atom03"/>
        <id>urn:ABCD-com:newsfeed:1:200:500</id>
        <published>2010-03-08T05:31:40Z</published>
        <updated>2003-12-13T18:30:02Z</updated>
        <category term="Film" />
        <ABCD_nm:NewsManagement type="feedarticle">
            <ABCD_nm:feed_type>news</ABCD_nm:feed_type>
            <ABCD_nm:feed_id>1</ABCD_nm:feed_id>
            <ABCD_nm:feedinstance_id>200</ABCD_nm:feedinstance_id>
            <ABCD_nm:feedarticle_id>500</ABCD_nm:feedarticle_id>
            <ABCD_nm:feedarticle_section id="1">Film</ABCD_nm:feedarticle_section>
            <ABCD_nm:article_id>232333</ABCD_nm:article_id>
            <ABCD_nm:published>2010-03-08T05:31:40Z</ABCD_nm:published>
            <ABCD_nm:updated>2003-12-13T18:30:02Z</ABCD_nm:updated>
            <ABCD_nm:publishing_status>Usable</ABCD_nm:publishing_status>
        </ABCD_nm:NewsManagement>
        <ABCD_cm:ContentMetadata type="newsarticle">
            <ABCD_cm:title>Title</ABCD_cm:title>
            <ABCD_cm:first_line>First Line</ABCD_cm:first_line>
            <ABCD_cm:body>Body</ABCD_cm:body>
            <ABCD_cm:slug>Body</ABCD_cm:slug>
            <ABCD_cm:tags>
                <ABCD_cm:tags term="Person" id="22">Tag 1</ABCD_cm:tags>
                <ABCD_cm:tags term="Place" id="33">Tag 2</ABCD_cm:tags>
            </ABCD_cm:tags>
            <ABCD_cm:categories>
                <ABCD_cm:category id="4">Cat 1</ABCD_cm:category>
                <ABCD_cm:category id="2">Cat 2</ABCD_cm:category>
            </ABCD_cm:categories>
        </ABCD_cm:ContentMetadata>
        <ABCD_mm:MediaMetadata>
            <ABCD_mm:media version="Small1" id="12345" type="image" mimetype="image/jpeg" filename="file://ABCD1234567.jpg">
                <ABCD_mm:width>1200</ABCD_mm:width>
                <ABCD_mm:height>800</ABCD_mm:height>
            </ABCD_mm:media>
        </ABCD_mm:MediaMetadata>
    </entry>
</feed>
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 08-03-10, 05:44 PM   #2
Wester
Guest
 
Posts: n/a
Default Re: XML Feed Hell

XML is like violence, if it doesn't solve the problem, just use more.
  Reply With Quote
Old 08-03-10, 05:52 PM   #3
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default Re: XML Feed Hell

Quote:
Originally Posted by Wester View Post
XML is like violence, if it doesn't solve the problem, just use more.
problem is that there are a million and one ways to do the same thing in XML, grrr choices, annoying
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Old 08-03-10, 05:57 PM   #4
timwilky
Member
Mega Poster
 
timwilky's Avatar
 
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
Default Re: XML Feed Hell

XML was d̶e̶v̶e̶l̶o̶p̶e̶d̶ hacked by former cobol programmers. Nobody else would use 30 words where one will do. I hate it from a developers perspective. yet love it for data encapsulation.
__________________
Not Grumpy, opinionated.

Last edited by timwilky; 08-03-10 at 05:59 PM.
timwilky is offline   Reply With Quote
Old 08-03-10, 05:59 PM   #5
TSM
The Sick Man
Mega Poster
 
TSM's Avatar
 
Join Date: Nov 2004
Location: Peckham.SE.LDN
Posts: 4,768
Default Re: XML Feed Hell

Have you ever had to play with NITF and NewsML formats, ahhh such pain and useless repetition of tags.
__________________
OTR: KTM 690 Duke R 2015 Full Akro
SIDELINE: Kwak ZX636 A1P 2002, Red, R&G's, Yoshi, Double Bubble Screen
GONE: Kwak ZX-7R P1, Full Akro, Undertray, Screen
GONE: SV650S K2 Very Bruised & Without Fairing, Motovation Frame Sliders, R&G Ally Sprocket Toe Protector, HEL 2 Line Setup, GSXR K1 600 RWU Forks, Barnett Clutch & Springs, Penske 8981 Shock, Gilles Ti Rearsets, Steel Barends, Scottoiler, AFAM Chain & Sprockets, Twin FIAMM Horns, Skidmarx Bellypan, Full Micron Zeta Steel System, Cut down undertay.

Forum Problems & Information / Site Suggestions
TSM is offline   Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glencoe massacre LIVE FEED amarko5 Photos 354 12-08-09 12:28 AM
Positive Feed to rear lights zx6man SV Talk, Tuning & Tweaking 12 22-04-08 01:10 PM
Leather feed. quikstu Bikes - Talk & Issues 16 06-02-08 03:33 PM
Feed me Better Red ones Idle Banter 16 08-03-05 12:03 PM


All times are GMT. The time now is 04:47 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.