How to Transform POJO to ATOM Feed entry

Hi,
I have a Java Object which I need to use in order to construct an ATOM Feed Entry.
The Entry should look like this:
<entry>
    <title>Details</title>
    <content type="application/xml">
      <ooo:information xmlns:ooo="http://test.company.com">
        <ooo:type>var_ConfigType_00</ooo:type>
        <ooo:ID>var_InstanceID_00</ooo:ID>
        <ooo:properties>
          <ooo:property name="abc.1" value="xyz.1" />
          <ooo:property name="abc.2" value="xyz.2" />
          <ooo:property name="abc.3" value="xyz.3" />
          <ooo:property name="abc.4" value="xyz.4" />
          <ooo:property name="abc.5" value="xyz.5" />
        </ooo:properties>
      </ooo:information>
    </content>
  </entry>I am using abdera like this:
Abdera abdera = new Abdera();
        Factory factory = abdera.getFactory();
        Entry entry = factory.newEntry();
        entry.setTitle("Details");Now what should I do to set the contents so that my entry looks like above.
Thanks
SAM

you may try some XML binding tool instead of DOM. (e.g. http://xstream.codehaus.org/tutorial.html).
There is no problem generating DOM. Its about generating oracle.xdb.XMLType using java api. Could you show a code snippet that would generate XMLType using xstream or other XML binding tools ?
2) you may use DBMS_XDB.CREATERESOURCE to create a resource from varchar2 or clob parameter.
Could you show a code snippet that inserts into Secure Binary XMLType table using CreateResource ? Im not using schema. Also Varchar supports 32kb. Conversion from Java String XML to CLOB is expensive ( because Oracle uses jdbc connection)

Similar Messages

  • Atom feed for Magazine

    I am looking to add an atom feed for new magazine issue, to a already published magazine within iTunes. It appears that iTunnes provide this facility which I can add the feed for the new issue and subscribers will get update when this issue is live. How can I add a atom feed to already published magazine with new issue, from Adobe Cloud??? All editions are published and stored on Adobe Cloud???

    Have you see the publishing guide we have for professional and enterprise customers? http://help.adobe.com/en_US/ppcompdoc/Adobe_Publishing_Companion_Guide_for_iPad.pdf. Check out page 48 which describes the process of creating in-app purchase for retail folios. You create a unique Product ID for each issue you publish of your magazine, and make sure that product ID matches what you submit to the iTunes in-app purchases page.
    Neil

  • Retrieving the new entries of an updated ATOM feed/API

    I am using Java servlets to read several ATOM feeds.while reading those feeds below is the problem which i encountered
    An illustration of the problem .....................
    Suppose
    At 9:00 AM
    Feed entries are
    X
    Y
    At 9:10 AM
    Feed entries are
    a
    b
    c
    X
    Y
    newly added entries are a,b,c
    i read the feed at 9:00am and noted down the entries X,Y
    after 10 minutes again i read the feed
    using Etag (or) id method i detected that the feed has changed....................
    now how to retrieve those newly added entries of a feed at 9:10 Am?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    i thought of following the below approach
    at 9:00 Am notedown the entry id of latest entry...............................
    at 9:10 Am (it is modified) read the feed entries until you get the entry who id is equal to the entry which we stored at 9:00Am
    These entries which we read here are newly added ones...............
    is this the right approach to get the newly added entries of a feed?
    (or) is there any efficient approach ?
    --rama
    Edited by: Ramaa on Oct 17, 2008 5:51 AM

    I am using Java servlets to read several ATOM feeds.while reading those feeds below is the problem which i encountered
    An illustration of the problem .....................
    Suppose
    At 9:00 AM
    Feed entries are
    X
    Y
    At 9:10 AM
    Feed entries are
    a
    b
    c
    X
    Y
    newly added entries are a,b,c
    i read the feed at 9:00am and noted down the entries X,Y
    after 10 minutes again i read the feed
    using Etag (or) id method i detected that the feed has changed....................
    now how to retrieve those newly added entries of a feed at 9:10 Am?
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    i thought of following the below approach
    at 9:00 Am notedown the entry id of latest entry...............................
    at 9:10 Am (it is modified) read the feed entries until you get the entry who id is equal to the entry which we stored at 9:00Am
    These entries which we read here are newly added ones...............
    is this the right approach to get the newly added entries of a feed?
    (or) is there any efficient approach ?
    --rama
    Edited by: Ramaa on Oct 17, 2008 5:51 AM

  • "We had difficulty reading this feed. null" Atom feeds no longer work?

    Hi - our Audioboo feeds used to work fine when submitting as a podcast (eg http://audioboo.fm/users/4705/boos.atom). It seems like they stopped working recently - maybe in the past couple of days - and just report "We had difficulty reading this feed. null" when you try to submit them.
    I'm beginning to suspect that the use of atom rather than rss is the cause. Can anyone confirm?
    -Jonathan

    This feed can be subscribed to manually in iTunes (from the 'Advanced' menu) - actually I'm rather surprised it works because it isn't a valid podcast feed (though it is a valid Atom feed).
    It has the iTunes 'declaration' and some itunes tags, although the former is contained in a 'feed' tag whereas it should be a 'rss' tag: there is no 'channel' tag enclosing the podcast data, no 'item' tags enclosing each episode, and no 'enclosure' tags within each episode containing the media URL. I'm not surprised you can't submit it as a podcast, and as I say it's a but surprising that the iTunes application recognizes it.
    In order to get it accepted in the iTunes Store you need to create a feed in the correct format: this page contains a sample basic feed so you can see how it should look:
    http://www.wilmut.org.uk/pc
    If the feed contains the valid iTunes format it can also contain atom tags, which iTunes will ignore.

  • How do I insert a form feed character in my XSLT?

    I need to finish a transformation with a form feed character and when I use &#12; I get an invalid character exception. &#10; works OK so I guess the syntax is in the correct form but how do I use it for a form feed character (page break)?

    If you know the decimal unicode value for the character you want (which for ASCII characters is the same as the ASCII code for it), just use:
    <xsl:text>&#NNNN;</xsl:text>
    where NNNN is the decimal number. For example, in insert a tab character (number 8), just do:
    <xsl:text>&#8;</xsl:text>
    If you only know the value in hex, you can use the syntax:
    <xsl:text>&#xHHHH;</xsl:text>
    Where HHHH is the hex value.
    null

  • How do I get the RSS feeds to work in iWeb'08 when published to FTP server?

    There are so many unresolved questions because I have published to an FTP server (Netfirms). HOWEVER, my next task at hand is to resolve the issue of a non-working RSS feed and download capabilities.
    The published website is www.vibrationalvoyages.com.
    When using Cyberduck to upload to Netfirms, I have to call the file name vibrationalvoyages.com because Netfirms organizes my files under a main folder called www (I also purchased the .org and .net extensions along with the singular spelling of the title, have forwarded those url's to the .com extension, which means I have different website names under Netfirm's main folder www, all pointing to www.vibrationalvoyages.com).
    I have to drop the www. in front of vibrationalvoyages.com when publishing to a folder on my computer so, when Cyberduck uploads the files into the main www folder, they are read correctly and published as www.vibrationalvoyages.com. In Cyberduck, the ftp address to upload is vibrationalvoyage.netfirms.com
    Before uploading, I use iTweak to insert the Statcounter tracking codes. Then, I use Rage to optimize the site to cut down on the weight (lots of photos). Then, finally, I get to upload which takes about an hour and a half.
    SO, HOW DO I GET THE RSS FEEDS TO WORK AS WELL AS THE OPTION TO DOWNLOAD AN MP3 RECORDED MEDITATIONS? I eventually also want to include the download option of podcasts.
    Please help! I am doing the best I can to stay in love with Mac but he is turning out to be a pot load of work and the love affair is wearing a little thin.
    I haven't even asked about why iWeb still calls some pages 'The family picnic" or why it switches the url addresses to the individual pages. Probably because in the early stages, I copied an entry rather than just do a new one... but I'll worry about that later. I want to get this 'fixed' first and then I'll address the issue, following Roddy's advice to another writer about installing a flash player, for easy download of the MP3 meditations and for when I record the lessons as podcasts. Until I get this RSS issue resolved, however, podcast downloads are out of the question!

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • [new] akregator RSS/Atom feed reader

    akregator 1.0 beta 10 allows you to browse through thousands of internet feeds without the hassle of using a web browser.
    PKGBUILD
    pkgname=akregator
    pkgver=1.0_beta10
    pkgrel=1
    pkgdesc="akregator RSS/Atom feed reader"
    license="GPL"
    url="http://akregator.sourceforge.net/"
    source=(http://dl.sourceforge.net/sourceforge/akregator/akregator-1.0_beta10.tar.gz)
    md5sums=('fa4e9ba5e14f0f537d2c4060be62f383')
    build() {
    cd $startdir/src/akregator-1.0_beta10
    ./configure --prefix=/opt/kde
    make || return 1
    make prefix=$startdir/pkg/opt/kde install
    http://www.linux-blog.de/download/arch- … pkg.tar.gz

    I am new to dreamweaver and have undertaken the cd training, however I am unable to find information on how to add an rss feed reader to my site and which extension is most appropriate. I would really appreciate if someone could advise me how i go about adding the feed reader to my site so I can show content generated by Feeds from other websites. I would also appreciate any advice on which reader is most compatible with CS5
    I went to the Adobe Exchange for Dreamweaver and search on "rss" and got 14 hits:
    http://www.adobe.com/cfusion/exchange/index.cfm?searchfield=rss&search_exchange=3&search_c ategory=-1&search_license=&search_rating=&search_platform=0&search_pubdate=&num=25&startnu m=1&event=search&sticky=true&sort=0&rnav_dummy_tmpfield=&Submit=
    Maybeone of the Dreamweaver Extensions does what you want.
    Hope this helps,
    Randy

  • ATOM Feed parsing in Flex

    I need to parse an Atom Feed and display it into a Flex UI.
    As part of UI I am providing navigation links such as:
    Next Page, Previous Page, First Page and Last Page.
    The Feed looks like this:
    <feed xmlns="http://www.w3.org/2005/Atom">
      <title>Alert Feed</title>
      <link rel="self" type="application/atom+xml" href="/alerts?page=1" />
      <link rel="next" type="application/atom+xml" href="/alerts?page=2" />
      <link rel="last" type="application/atom+xml" href="/alerts?page=4" />
    </feed>
    How can I read the next page href value when the user clicks on Next Page navigation link?
    Thanks,
    SAM

    I'll bet if you search the forum history you'll find other questions and
    answers on this topic.

  • Accessing Atom XML entry by id?

    Hello,
    I have a strange problem when trying to access atom feeds (or
    any xml really).
    I'm using a standard HttpService to grab an atom feed, then
    i'm trying to access a particular node summary from its id with
    this xml query:
    myLabel.text=myFeed..entry.(id=="elementidhere").summary;
    But it will not match any entry based on the id, yet it will
    quite happily match against the title or any other node as such:
    myLabel.text= myFeed..entry.(title=="Welcome").summary;
    And will even output the id just to prove it exists:
    myLabel.text= myFeed..entry.(title=="Welcome").id;
    Is there something special about the id node so I cant do a
    straightforward match against it- I'm using the atom namespace
    which reports the id as a uri so do I need to handle it
    differently. I've tried converting it to a string also, but this
    then throws an error saying its null:
    myLabel.text=myFeed..entry.(id.toString()=="tag:elementid").summary;
    Any ideas?
    Anthony

    Use this as your schema. It should work then.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:complexType name="EntryClass">
    <xsd:attribute name="ID" type="xsd:ID" use="required"/>
    <xsd:attribute name="value" type="xsd:string" use="required"/>
    </xsd:complexType>
    <xsd:complexType name="MapClass">
    <xsd:sequence>
    <xsd:element maxOccurs="unbounded" minOccurs="1" name="entry" type="EntryClass"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="map" value="MapClass"/>
    </xsd:schema>

  • How to create exchange grid in web entry form...

    Hi to all,
    I am new to HFM..my query is How to create exchange grid in web entry form...i try it a lot but it didn't get the solution...
    i did this exchange grid in web grid..any one can share the document or ppt or video clip related to this..which will be helpful for me...
    Thanks

    Hi...
    Its better to create the Exchange Rates in a Data Form than in an Data Grid, so that you can easily Import and Export the form and even can feed the values easily....
    Select the POV like in Scenario-Actual,Year-Your particular year,Period-In Period Dimension do not choose any option so that it can be selected in Columns and Rows,View--the same as Period Dimension,Entity-[None],Value-<Entity Currency>,Account-Do Not select ,ICP- [ICP None],Custom 1-[None], Custom 2-[None], Custom 3-[None], Custom 4-[None]...
    In Columns Select Scenario -Actual,Period-{[Fourth Generation]},Currency-#USD(Default Currency)
    In Rows Select-Account-A#AVGRATE,View-w#Periodic,Currency-C2#EUR
    A#AVGRATE.w#Periodic.C2#CFA and so on for rest of the currencies....
    and same in the below rows for the Closing Rates---- A#CLORATE.w#Periodic.C2#EUR
    A#CLORATE.w#Periodic.C2#CFA
    This might help you.....

  • How to edit a Finder "Open With" entry

    How do I edit an "Open With" entry on the context menu in Finder? I have an application which updated recently and has added a rather long version number to the application name in the "Open With" entry for the app. I have run a command line which was given to me in these forums to update file-type associations and remove old apps from the list but the version number on this app seems to be resisting efforts to be cleaned up. I am guessing there is something in a PList somewhere but I don't know where.
    Any help would be appreciated.

    Use an encrypted disk image or a third-party method. Placing the password in the keychain will automatically unlock the image when your Mac OS X account is active.
    (53277)

  • 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 delete the orphaned Expected Rule Entries exist in the FIM portal

    Hi,
    How to delete the orphaned Expected Rule Entries exist in the FIM portal.
    A large number of orphaned Expected Rule Entries exist in the FIM portal (originally 140000k+ objects, currently 75000+ objects). They consume the a lot of FIM database space and slows down the identity lifecycle management synchronization processes.
    Regards
    Anil Kumar

    Hello,
    in my environments i use this approach:
    https://social.technet.microsoft.com/Forums/en-US/1af6cf77-4c55-4a3e-93cc-0baae80bc88f/expiration-workflow-cannot-delete-ere?forum=ilm2
    This sets up a compination of Sets, Workflow and MPR to let the "Expiration Workflow" delete EREs as soon as they get orphaned.
    This works fine since 3 years now, even if there are comming SQL-Jobs within a FIM update, but I implemented this before this was done.
    I would suggest to clear the current orphaned EREs with PowerShell to avoid request flooding when implementing the above solution. Then implement that housecleening above.
    Regards
    Peter
    Peter Stapf - ExpertCircle GmbH - My blog:
    JustIDM.wordpress.com

  • Re:How can we delete the concurrent node entry from the FND_NODE table

    HI ,
    11.5.10.2 on Oracle Solaris on SPARC (64-bit) .
    How can we delete the concurrent node entry from the FND_NODES table without running Autoconfig.
    Currently we are having 3 nodes RAC and we are deciding to remove one node from the RAC and all 3 nodes are registered as concurrent node with application but concurrent manager is running only on one node.
    Lot of the custom configuration we did it at application web tire level. If we run the Autoconfig at that time we need to redo those changes again that we are trying to avoid.
    Regards .

    we are trying to avoid to run FND_CLONE.setup_clean because it will delete all the nodes entries from the FND_NODES.If those entries are invalid then they should be deleted.
    Running AutoConfig after purging the table will populate it with the correct entries.
    In order to populate the nodes entries again we need to run autoconfig and it will change the server id in fnd_nodes and then we need to redo the ADI client configuration on users PC and redo all the changes that we made in jserv and webserver.For ADI Clients, you should use the correct server ids which will be populated in the table for you once you run AutoConfig.
    For jserv configuration, you can refer to (Customizing an AutoConfig Environment [ID 270519.1]) to make the preserve all your custom setup/configuration after running AutoConfig.
    If there any custom script to delete only one node from the fnd_node so that we don't need to run autoconfig after that, then I really appreciate.No.
    Thanks,
    Hussein

  • I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me?

    I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me? The final result would be a spreadsheet telling there were 8 people from 20 to 39 years old, 14 peolple from 40 to 59 and so on...

    jpqcampos wrote:
    This appears to be an 'input form' using 'Radio Buttons' to select the category. Neither of these features are supported in Numbers '09.
    You can input the data on one table and summarize it on a second table, but the input table will continue to hold data for each event.
    And by using the Reorganize button, you can hide all but two rows of that table to approximate the appearance and performance of an input form.
    Here are the two tables, Data on the left and Summary on the right. Notes below.
    The grey-filled columns in both tables are 'working' columns, and may be hidden (as shown in the image below).
    Data table:
    D1 contains the word "TRUE" (in capital letters). (This row is always shown.)
    D2 is empty, or may contain any value except "TRUE" (This row is always hidden under the Reorganize rule.)The rest of Row 2 of this table requires the data shown: a number outside the range to be counted (999), and two checkboxes, both checked.
    D3 (and filled down the rest of column D):   =AND(OR(B2,C2),NOT(OR(B3,C3)))
    The formula returns TRUE only for the first unused row in the table (ie. the first row for which neither checkbox has been checked)
    Summary table:
    Column A contains labels for the age ranges to be counted.
    Column B contains the same information in the form necessary for the formulas in columns C and D. They need a numeric value, and that value must be the largest acceptable value in the range to be counted.
    C2 (and filled right to column D, then both filled down to row 5):
        =COUNTIFS(Data :: $A,"<="&$B,Data :: B,TRUE)-SUM(C$1:C1)
    Two changes from the previous example:
    COUNTIFS is used to separate the Native and Foreign counts as well as the age range to be counted.
    The amount subtracted from each result is the SUM of the earlier results, and includes the text value in the first cell of the column (which is interpreted by SUM as a zero).
    See note below regarding my earlier formula.
    When the greyed columns are hidden and the checkbox in the Reorganize pane is checked, the two tables will appear as shown below:
    Close the reorganize pane, and the 'data entry form' is ready to use.
    To use, enter the age first, then check one of the boxes.
    As soon as one box is checked, the row will be hidden, and the next (unused) row will be shown.
    Regards,
    Barry
    Note regarding formula in my earlier post:
    The earlier formula will give erroneous results as it subtracts only the count directly above it from its count of persons in the age range 0-n.
    In E2 of that table, replace "-E1" with "-SUM(E1:E$1)
    Fill down to E8.
    Ignore the instructions (in that post) following "Fill down to E8."
    B

Maybe you are looking for

  • Need to read source file without deleting it!

    Hi, I have a scenario where      1.  I need to pick the latest file from source folder without deleting it.      2. I need to post the data in to EP's KM. (how can I communicate with EP) So can any put some light as how to achieve this. Regards, shiv

  • How to convert Oracle reports previewer output into delimited file.

    How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages. I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file. I obser

  • Multiple Key Figures and SINGEDATA

    Hi Experts, There are different Key Figures in BI like Amount, Quantity, Number, Integer, Date, Time, and the associated Unit. Whereas, in BPC there is only one type of object is used for recording quantitative values for transaction in BPC, that is

  • Thread Dump vs Heap Dump

    Hi, The below question are related to J2EE 7.00. - What is the difference between Thred dump and Heap dump? - When I go to Config tool then I go to Instance ID. There are two nodes under the Instance ID, DIspatcher and Server (could be multiple). I s

  • Whenever i open itunes, my laptop shuts down

    I am using lenovo G560 laptop, windows7 ultimate 64 bit. Whenever I open itunes, laptop shuts down. Pls provide a resolution, I am not being able to use my itouch. pls help