How to create an XML/RSS feed from a SQL recordset?

I've been trying to find either a tutorial or extension that will allow me to take a SQL recordset, and create my RSS feed on the fly.  Not having much luck... anyone out there have a suggestion??

Thanks PC!
I made it work using:
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
factory.setIgnoringComments(true); // We want to ignore comments
// Now use the factory to create a DOM parser
DocumentBuilder parser = factory.newDocumentBuilder();
//TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
// Parse the InputStream and build the document
Document document = parser.parse(in);
But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

Similar Messages

  • Tutorial Announcement .:: How to Create a Dynamic RSS Feeds  ::.

    .:: How to Create a Dynamic RSS Feeds ::.
    Using Adobe Dreamweaver 8 and InterAKT Rss Reader Writer Extension.
    Hello everyone...
    RSS feeds are very useful within sites, as they allow integrating for you website content in an automatic manner. Just share the source for the RSS feed, and when the original content changes, it will reflect in the content you share with any one who subscribed in this feeds on your site.
    In this tutorial i`ll help you integrate a RSS feed into one of your pages. This will display the content of your website to feeds subscribers with up to date content.
    The main purpose of this tutorial is to create a page that allows visitors subscribe to the RSS Feed that they want to see from your website content, or even enter their own in a text box by searching through feeds. also you can define feeds categories if your website is online store, merchant etc...
    :: Online Demo ::
    :: Go to tutorials ::
    Best Regards
    Waleed Barakat
    Developer-Online Creator and programmer
    http://www.developer-online.com

    Hey Waleed,
    thanks again for this great stuff -- and thanks for removing the login protection :-)
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • How can I save the RSS feed from awebsite on the toolbar so it will show all the content in a folding menu?

    In the previous versions of FireFox I Could push the RSS sign in the addressbar and choose to have the feed on my bookmark toolbar. In that way i could push the feed name on the bar and see names of feeds i have read and them I havent read and decide whiche one to go to. today when i save a bookmark to the toolbar and then push it there, instead of showing me the different content in a folding menu like before, the whole page jumps to the website. How can I save the feed from the website like before?

    - Go to the Tools menu - select Options.
    - At the top of the Options window, click 'Applications'.
    - Scroll down to 'Web Feed' and make sure the Action is set to 'Add Live Bookmarks in Firefox'.
    - Click OK.
    - Navigate to the desired website, go to the Bookmarks Menu and select 'Subscribe to this Page'

  • How can I create an RSS feed from my Azure Storage Blob?

    I'm a Tech Evangelist at Microsoft, based out of Philadelphia. I also have a podcast,
    http://indiedevpodcast.wordpress.com/, and was previously hosting my show on PodOmatic.
    I made the switch to Azure blog storage today, and I'm able to get the content there:
    https://indiedevpodcast.blob.core.windows.net/podcasts/Ep%2016%20Wimbus%20Studios.mp3/
    The issue though, is how do I generate an RSS feed from my podcasts in Azure blog storage?  It says "file not found", but it opens up Window Media Player and plays the file for me.
    *shrug*
    Is this what I'm looking for? http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
    Thanks! 
    MS Tech Evangelist - Philadelphia | Baltimore Previously: Xbox Engineer at Comcast www.DavidVoyles.wordpress.com

    Hi,
    Thank you for reaching out to us.
    I am currently researching to gather more information with regards to your request.
    I shall revert back to you with an update at the earliest.
    Sincerely appreciate your patience.
    Regards,
    Shirisha Paderu

  • How do I insert RSS feed from my blogspot to my iWeb?

    Hi Guys,
    Really need some help here. I'm new to iWeb. I have been blogging using Blogspot.com.
    Right now, I would like to get RSS feed from my blog and display it in the iWeb. How should I do it?
    Please advise.
    Thanks

    Hello Kenny welcome to the forum.
    Create a hyperlink to yoursite.com/RSSfeedpath.xml.
    There's info on Google if you search for RSS icon in address bar where you can add a code into the head section of your html page post-publish to have RSS icon in addressbar that when clicked displays the RSS feed.
    You can also place an iframe code into an iWeb snippet to embed the rss file into your page but instead of http use feed:// so the iframed URL looks like this:
    feed://website.com/RSSfeedpath.xml
    hth

  • How to Create an XML document from XSQL servlet which follows a particular DTD struct

    how to Create an XML document from XSQL servlet which follows a particular DTD structure.Could anyone send me a sample code for this.

    You'll need to associate an XSLT transformation with your XSQL page that transforms the canonical result into your DTD-valid format.
    For example, given an XSQL page like:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="rss.xsl" ?>
    <xsql:query max-rows="3" connection="demo" xmlns:xsql="urn:oracle-xsql">
    select title,id,description,url,to_char(timestamp,'Mon DD') timestamp
    from site_entry
    order by id desc
    </xsql:query>and an "rss.xsl" stylesheet that looks like this:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes" doctype-system="rss-0.91.dtd"/>
    <xsl:template match="/">
    <xsl:for-each select="ROWSET/ROW">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    <xsl:for-each select="ITEM">
    <item>
    <title><xsl:value-of select="TITLE"/></title>
    <link><xsl:value-of select="URL"/></link>
    <description><xsl:value-of select="DESCRIPTION"/></description>
    </item>
    </xsl:for-each>
    </channel>
    </rss>
    </xsl:for-each>
    </xsl:template>
    </xsl:stylesheet>You produce DTD-valid output against the rss-0.91.dtd DTD that looks like:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE rss SYSTEM "rss-0.91.dtd">
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>
    <rss version="0.91">
    <channel>
    <title>Do You XML?</title>
    <link>http://xml.us.oracle.com</link>
    <description>Oracle XML Website Demo</description>
    <language>en-us</language>
    </channel>
    </rss>

  • How to create ArrayColletion in mx:Script from mx:Model id="results" source="/data/data.xml" /

    How to create ArrayColletion in mx:Script from <mx:Model
    id="results" source="/data/data.xml" />
    Please see my code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Model id="results" source="/data/data.xml" />
    <mx:Script>
    import mx.collections.ArrayCollection;
    import mx.utils.ArrayUtil;
    import mx.controls.Alert;
    </mx:Script>
    <mx:ArrayCollection id ="dt1"
    source="{ArrayUtil.toArray(results.result)}"/>
    <mx:Script><![CDATA[
    [Bindable]
    public var expenses:ArrayCollection = dt1;
    [Bindable]
    public var expenses2:ArrayCollection = dt1;
    [Bindable]
    public var dp:ArrayCollection=expenses;
    public function changeDataProvider():void{
    Alert.show(expenses.toString());
    if (dp==expenses){
    dp=expenses2;
    }else{
    dp=expenses;
    ]]></mx:Script>
    <mx:Panel x="10" y="10" width="100%" height="378"
    layout="absolute">
    <mx:ColumnChart dataProvider="{dt1}" x="10" y="10"
    id="myChart" height="318" width="100%">
    <mx:horizontalAxis>
    <mx:CategoryAxis categoryField="month"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:ColumnSeries displayName="apple" yField="apple"/>
    <mx:ColumnSeries displayName="orange"
    yField="orange"/>
    <mx:ColumnSeries displayName="banana"
    yField="banana"/>
    </mx:series>
    </mx:ColumnChart>
    <mx:Legend dataProvider="{myChart}" x="481" y="10"/>
    </mx:Panel>
    <mx:Button x="284" y="416" label="Change Data" id="bt"
    click="changeDataProvider()" />
    </mx:Application>

    Tracy,
    Thanks. That worked. However I have another related question:
    I convert the xml feed to a XMLListCollection by doing:
    <mx:XMLListCollection id="mission"
    source="{xmlFeed.lastResult.day}"/>
    and
    <mx:XMLListCollection id="mission1"
    source="{xmlFeed.lastResult.day.tBlock}"/>
    On the chart I have
    <mx:ColumnChart id="missionReadiness" height="150%"
    width="100%"
    paddingLeft="2" paddingRight="2"
    showDataTips="true" dataProvider="{mission1}">
    <mx:series>
    <mx:ColumnSeries xField="" yField="@today"
    displayName="Today"/>
    <mx:ColumnSeries xField="" yField="@tomorrow"
    displayName="Tomorrow"/>
    <mx:ColumnSeries xField="" yField="@afterT"
    displayName="After Tomorrow"/>
    </mx:series>
    </mx:ColumnChart>
    the yField works, but for the xField I want to have the @date
    but refers to the parent node, so I am clueless on how to refer to
    it.
    Also, I would like to display on the chart only the values to
    a specific date (like @date="05/17/2007").
    Any suggestions on how to do that?
    Gilbert

  • Create RSS feed from HTML DB?

    I've been using a streaming RSS feed extension in Firefox for several months now and get feeds from all over including asktom.oracle.com and http://www.oracle.com/technology/products/database/htmldb/index.html. Very cool.
    Recently I've installed HTML DB and have begun creating some basic reports - nothing very dramatic as I'm just learning. Now I'd like to begin sending out RSS feeds from my HTML DB application to my RSS extension in my Firefox browser but can't find an easy way to do it.
    I see several posts of others wishing to do the opposite (read RSS feeds into their HTML DB application) but nothing that shows how to create a feed from HTML DB.
    I looked at Tom's description of his method at http://asktom.oracle.com/~sdillon/rss.html but this seems very cumbersome to me - is there an easier way?
    I would think that there should be a "create RSS" feed button somewhere in the HTML DB interface when I'm defining the page's attributes.
    Thanks in advance for any advice/suggestions.

    Actually, Tom's method is not as hard as it looks.
    You can really just copy it all into your own procedure and replace the inner query.

  • Create RSS feeds from KM News

    Hi all,
    is it possible to create RSS feeds from the standard News items created with Form Based Publishing (XML Forms builders)? In other words, instead if just displaying those news items in the portal, can they be displayed in an RSS reader as well?
    Since it's all XML I would say it is possible, right?
    please advice
    Marcel

    Hi Marcel,
    jRSS - Simple Java RSS Feed Generator
    A simple java API to produce Really Simple Syndication (RSS) documents following the specification version 2.0
    http://sourceforge.net/projects/jrss/
    http://cephas.net/blog/2003/09/07/creating-rss-using-java/
    So generate the RSS in the KM folder where your XMLForm datas are saved.
    After that create a component that accesses this RSS and shows it. You can use RSS Viewer librarys to achieve this:
    http://sourceforge.net/projects/rssview/
    So steps are:
    1. Create RSS and save as resource in KM.
    <b>Create a Repository Service, which creates this RSS and also updates it when contents in the folder changes.</b>
    2. Read this resource using a component and create IView from this component.
    I am sure that there are lots of other approches to implement this solution.
    Greetings,
    Praveen Gudapati
    [Points are always welcome for helpful answers]

  • How can I get my RSS feeds to show up on my iOS devices from iCloud?

    How can I get my RSS feeds to show up on my iOS devices from iCloud?  The RSS feeds now show up just fine on my iMac. 
    On my iMac the appear in a category at the same level as In Box, Sent, etc.  However the term RSS is in lighter grey like Mailboxes, On My Mac, Reminders.  I use Snow Leopard 10.7.5.  Any help will be appreciated as I'd like to read the feeds on my iPad 2 and iPhone 5 when I'm away from home.
    Thank you.

    This is helpful, but how do you get both devices to communicate to this single calendar via the iCloud?...
    You did not mention that it must be through iCloud.  But then, it can't really do so if you want to maintain separate Apple IDs.
    So you just set up an additional calendar on your devices.
    iPads, iPhone, Macs can show multiple calendars simultaneously.  I have my work calendar and several personal calendars all showing simultaneously on my iPad, Mac Mini and Macbook Pro.   In the case of my client, they didn't need multiple calendars.  They just were going to use the one shared calendar.  But I did setup the shared Google calendar and separate personal caldendars on their iPhones.  (e.g.: Husband's iPhone = husband's personal Mac Cal + shared Google Calendar.  Wife's iPhone = wife's personal Outlook for Windows Cal + shared Google Calendar.)

  • How to create an XML document from a String.

    Can anyone help,
         In the Microsoft XML Document DOM there is a load function load(string) which will create an XML document, but now we are switching to Java and I do not know how to create and XML document from a string, this string �xml document� is passed to my program from a webservice and I need to read several xml elements form it in a web server.
    This string is a well formatted XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <Countries NumberOfRecords="1" LanguageID="en-us">
         <Country>
              <CountryCode>AU</CountryCode>
              <CountryName>AUSTRALIA</CountryName>
         </Country>
    </Countries>

    Thanks PC!
    I made it work using:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    factory.setIgnoringComments(true); // We want to ignore comments
    // Now use the factory to create a DOM parser
    DocumentBuilder parser = factory.newDocumentBuilder();
    //TransformThisStringBuffer is a string buffer wich contain the 'XML document (String)'
    InputStream in = new ByteArrayInputStream(TransformThisStringBuffer.toString().getBytes());
    // Parse the InputStream and build the document
    Document document = parser.parse(in);
    But which one is faster InputSource or InputStream, were would you put the "new InputSource(new StringReader(yourString))" in the above code?

  • How to create an xml from xsd in abap

    HI Experts,
       i want to create an xml file from xsd and i want to validate an xml file against an xds.is this possible in abap.if it is possible can any one give me an sample code
    for this one.
    how to create an xml file in abap.i have seen so many blogs which parses the xml file but i didn't get blog for creating an xml file.how can we do that one.
    any suggestions will be appriciated
    thanks in advance
    With Regards
    Naidu

    HI
    GOOD
    IT IS POSSIBLE IN ABAP
    Extensible Markup Language (XML) is a simple, very flexible text format derived from SGML (ISO 8879). Originally designed to meet the challenges of large-scale electronic publishing, XML is also playing an increasingly important role in the exchange of a wide variety of data on the Web and elsewhere.
    XSD->
    XML Schemas express shared vocabularies and allow machines to carry out rules made by people. They provide a means for defining the structure, content and semantics of XML documents. in more detail.
    XDS->
    XDS can process data images from CCD-, imaging-plate, and multiwire-detectors in a variety of formats. Detector specific Input file templates greatly simplify the use of XDS; they are provided as part of the documentation.
    XDS runs under Unix or Linux on a single server or a grid of up to 99 machines of the same type managed by the MOSIX system; in addition, by using OpenMP, it can be executed in parallel on up to 32 processors at each node that share the same address space.
    http://www2.stylusstudio.com/SSDN/default.asp?action=9&fid=23&read=2926
    /people/r.eijpe/blog/2006/02/19/xml-dom-processing-in-abap-part-iiia150-xml-dom-within-sap-xi-abap-mapping
    THANKS
    MRUTYUN

  • RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of

    RSS Feed from rss generator's new app has changed the feed. Now the description of apps is not showing. the rest is the same. Anyone has an idea why ?  and how do I get the description? if I fetch it from itunes pages would that be considered violation of apple's terms and conditions? Please help

    See this post.
    tt2

  • I am trying to remove all my RSS feeds from my News Folder on the Safari Home page. I can't figure out how to do this. Irving

    I ammtrying to remove RSS Feeds from my News Folder on the Safari Home page. There should be an easyway of doing this but I can't figureit out.
    Irving

    Ok I figured it out myself But for anyone else with the same problem I tried re-setting my network settings and that did the trick. I should have thought of that!

  • How to display a simple rss feed?

    Hi,
    I've build a simple application that has a httpservice called rss that calls "http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml" and retrieves the rss feed. Under test operation I can see it returning the feed.
    When the init() function is called the httpservice is called and passed to a datagrid.
    However, when I run it I get the following fault.
    Security error accessing url
    Destination: DefaultHTTP
    In the console I get the following messeage:
    Warning: Domain www.nytimes.com does not specify a meta-policy.  Applying default meta-policy 'master-only'.  This configuration is deprecated.  See http://www.adobe.com/go/strict_policy_files to fix this problem.
    Error: Request for resource at http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml by requestor from http://localhost:8888/Newsroom-debug/Newsroom.swf/[[DYNAMIC]]/4 is denied due to lack of policy file permissions.
    *** Security Sandbox Violation ***
    Connection to http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml halted - not permitted from http://localhost:8888/Newsroom-debug/Newsroom.swf
    [Unload SWF] /Newsroom-debug/Newsroom.swf
    I have checked different posts online and in this forum describing crossdomain.xml and settings in the flash player global settings to resolve this issue, but I can for some reason not get it to work.
    I want to be able to take rss feeds from any site and display them in a simple datagrid?
    Any suggestions?
    Below is the application code.
    Br,
    Karsten!
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
              creationComplete="init();" xmlns:rss="services.rss.*">
    <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;
              protected function init():void
                    getDataResult.token = rss.getData();
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:CallResponder id="getDataResult"/>
            <rss:Rss id="rss" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        </fx:Declarations>
        <mx:DataGrid id="rssGrid" width="500" dataProvider="{getDataResult.lastResult.channel.item}" >
            <mx:columns>
                <mx:DataGridColumn headerText="Feed" dataField="headline" />
                <mx:DataGridColumn headerText="description" dataField="description"/>
            </mx:columns>
            </mx:DataGrid>
    </s:Application>

    OK.
    Tried out your suggestion and it works!
    Thanks saisri2k2
    1) I created an http service which calls a php file:
    <mx:HTTPService
                id="rssNewYorkTimes"
                url="php/newyorktimes.php"
                result="rssNewYorkTimes_resultHandler(event)"
                resultFormat="e4x" />
    2) The php file then gets the feed and passes it back to the rssNewYorkTimes_resultHandler:
    <?php
      $feed = 'http://www.nytimes.com/services/xml/rss/nyt/GlobalBusiness.xml';
      $rawfeed = @file_get_contents($feed);
      print $rawfeed; 
    ?>
    3) the resulthandler then processes the feed and puts it in an arraycollection that can be passed to the datagrid:
    protected function rssNewYorkTimes_resultHandler(event:ResultEvent):void
                    var xmlList:XMLList = event.result.channel.item as XMLList;
                    for each(var item:XML in xmlList)
                        rssCollection.addItem({title: item.title, description:item.description, source:item.link});
                    buildRss();
    Thanks also to Chris Black for his post which explains in detail how this trick is done!
    http://www.blackcj.com/blog/2008/10/04/flexfeed-integrate-twitter-rss-feeds-into-flex/

Maybe you are looking for

  • Error while Assembling the Component in NWDI

    HI All, I am trying to assemble the component in NWDI . The assemly is failing .When  i check the log file i get the following log. 20091125100727 Info   :Starting Step Check-assembly at 2009-11-25 10:07:27.0253 +5:00 20091125100727 Info   :Checks fo

  • JMS UDD not working properly

    Hello First of all I new to weblogic world and started using it recently, the issue which we are facing is that we had a doc given by our client to create a weblogic JMS uniform distributed destination with queue. We followed it and everything came u

  • Get FBL3N Data in report

    How can we get fbl3n data in report? My requirement is, i provide just 3 G/L accounts in fbl3n and a range of posting date. Output of fbl3n i.e. those doc nos which had a posting aainst this g/l are required for further selection from bseg.

  • Cutom color profiles in lightroom

    i calibrated my screen using colorvision and am trying to print and stay consistant how to i include colorvision as a profile in the print space seetings

  • 3.6.13 was running by now get "unable to connect" notice while IE still works

    No changes have been made to the PC or the network access. Just go the notice 'unable to connect'.