Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XML to RSS

Reply
Thread Tools

XML to RSS

 
 
george veranis
Guest
Posts: n/a
 
      06-26-2006
I have a big xml file (16MB approximately) and it is like that:

<products>
<product>
<shopid>
</shopid>
<title>
</title>
<description>
<description>
<product>
</products>

and I want to transform it to a RSS file like that form:
<channel>
<title> </title>
<description> </desription>
<link>www.mydomain.com/go.jsp?prod=<shopid> <link>
</channel>

Please if anybody knows to tell which program language I can use to
transform it.

Thanks in advance!

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      06-26-2006

george veranis wrote:
> I have a big xml file (16MB approximately) and it is like that:


> and I want to transform it to a RSS file like that form:



> Please if anybody knows to tell which program language I can use to
> transform it.


Start with XSLT

If you don't know XSLT, then you should learn it. It's a useful tool
for any XML developer.

It's a good choice for this class of XML transform problem.

Now the downside. 16MB is a large XML document. XSLT probably won't run
very quickly on it (but I doubt this is a problem).

A 16MB RSS document would also be unusual (although possible) in RSS.
Who is this intended for, and are they really expecting to receive so
many items in it?

If you're going to filter your full catalogue down into a small RSS
channel (couple of dozen items max.), then XSLT might not be the best
choice, compared to some database tools. XML (in general) is not an
ideal format for "big document, small filtered set" problems.

 
Reply With Quote
 
 
 
 
John Bailo
Guest
Posts: n/a
 
      06-26-2006
george veranis wrote:
> I have a big xml file (16MB approximately) and it is like that:
>
> <products>
> <product>
> <shopid>
> </shopid>
> <title>
> </title>
> <description>
> <description>
> <product>
> </products>
>
> and I want to transform it to a RSS file like that form:
> <channel>
> <title> </title>
> <description> </desription>
> <link>www.mydomain.com/go.jsp?prod=<shopid> <link>
> </channel>
>
> Please if anybody knows to tell which program language I can use to
> transform it.
>
> Thanks in advance!
>


RSS is just another usage of XML for describing data.

Here is someone who wrote a VB.NET website that takes data in a database
and transforms it to RSS.

http://vnwwebdev1/RSSNewsFlash/addnews.aspx

Note: There are multiple RSS specs (1.0, 2.0., 3.0 and variants of
each). Different RSS Readers will respond differently to different
spec versions.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two ways to generate RSS - rss/maker and rss/2.0 - which is better? Jonathan Groll Ruby 1 06-27-2009 03:53 AM
Post RSS feed w/o RSS-to-Javascript.com Scott Gordo HTML 5 08-29-2006 01:34 AM
is RSS 2.0 still RSS 2.0 if we add our own unique tags to it? Jake Barnes XML 1 11-14-2005 01:54 AM
RSS Feed - need an Idiot's Guide to RSS News on my website teach_me6@hotmail.com HTML 5 02-25-2005 11:01 AM
Searches in multiple RSS feeds -> new rss feed Motta XML 1 06-09-2004 10:55 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57