SV650.org - SV650 & Gladius 650 Forum

SV650.org - SV650 & Gladius 650 Forum (http://forums.sv650.org/index.php)
-   Idle Banter (http://forums.sv650.org/forumdisplay.php?f=116)
-   -   XML Feed Hell (http://forums.sv650.org/showthread.php?t=147886)

TSM 08-03-10 05:41 PM

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>


Wester 08-03-10 05:44 PM

Re: XML Feed Hell
 
XML is like violence, if it doesn't solve the problem, just use more.

TSM 08-03-10 05:52 PM

Re: XML Feed Hell
 
Quote:

Originally Posted by Wester (Post 2204782)
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

timwilky 08-03-10 05:57 PM

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.

TSM 08-03-10 05:59 PM

Re: XML Feed Hell
 
Have you ever had to play with NITF and NewsML formats, ahhh such pain and useless repetition of tags.


All times are GMT. The time now is 11:27 AM.

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