Not only xml!

I would be really helpfull to access access data with spry
without using xml!
Is it planned to add such a functionallity?

Hi Andy,
Well first off, when you think of JSON, you should think that
it is just a compact way to store a
representation of a dictionary / hashtable / associative
array / object, arrays, strings, numbers, and booleans. I wouldn't
really say there is such a think as a 'JSON object'. JSON is just
about the way to represent information and pass it around. There
are a number of libaries to convert a tree of data in PHP (and
other languages) to JSON, check out this page:
http://www.json.org/
So as far as how to store your data in the database, JSON
should be the furthest thing from your mind. Setup your database as
you normally would, fetch data from it, manipulate it, and then at
the last step, shove it through a JSON serializer to send it out to
the client.
As for your application, here is an approach you might want
to consider. I saw this at NFL with their content management
system, and I'm sure it's used in lots of places, but at the time
it was a really cool new idea to me.
They stored all their data in a database, for pages that were
very dynamic to pages that were very static.
Next, they created a command line utility that given a URL
would fetch the data from the database, and write out a HTML file
to the correct location on disk. So say, you wanted to create the
page
http://www.nfl.com/pugbowling/index.html,
you'd just pass it that URL, it'd go find the data, generate a
page, and write it out to the docroot folder. In this way, they
could use the database to store all their information, and their
whole site could be dynamically generated from the database.
Then, and this was the cool part, they added an entry to make
their 404 error handler be the above script. So say, I come in and
want the pugbowling page above, but it hasn't been generated. A 404
error gets triggered, that triggers my page generation utility, the
page gets written to disk, and then that page gets returned!
Saweet!
Finally, when you edited the data in the database, it would
trigger a deletion of the page(s) that went along with that data,
so that the next user would trigger the 404 and get back the new
page. I think they also had something that would kill off files
that were really old and hadn't been accessed in awhile, just to
save space (imagine how much space NFL would waste if it kept a
copy of every news story around in full HTML form on disk?)
Anyways, the same idea could apply to creating actual XML /
JSON files. Let some process handle the creation of the files for
your, making that part of the process completely automatic, so you
just need to handle putting data into the database.
It all would depend on the amount of data, the complexity of
it, and such as to how much you want to implement something like
above. For example, I maintain some websites using XML + XSLT and
just use ANT to generate the site. If I had a lot more data, I'd
probably go with more of the approach above. Or maybe half of
above.
Good luck!
-doug

Similar Messages

  • Problem with input data format - not "only" XML

    Hi Experts,
    I have problem with input data format.
    I get some data from JMS ( MQSeries) , but input format is not clear XML. 
    This is some like flat file with content of XMLu2026.
    Example:
    0000084202008-11-0511:37<?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:xsd:test.01" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance Sndr="0001" Rcvr="SP">
    ...content....
    </Document>000016750
    Problems in this file is :
    1. data before parser <? xml version="1.0"> -> 0000084202008-11-0511:37 
    2. data after last parser </Document> -> 000016750
    This data destroy XML format.
    Unfortunately XI is not one receiver of this files and we canu2019t change this file format in queue MQSeries ( before go to XI) .
    My goal is to get XML from this file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:xsd:test.01" xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance Sndr="0001" Rcvr="SP">
    ...content....
    </Document>
    My questions:
    1. Is any way or technique to delete this data 0000084202008-11-0511:37  in XI from this file ?
    2. Is any way to get only XML from this file ?
    Thanx .
    Regards,
    Seo

    Hi Buddy
    What is the XI adapter using?
    If you use inbound File adapter content conversion you could replace these values with none and then pass it to the scenario.
    Does that help?
    Regards
    cK

  • How can I parse an XML string, (not an XML file)?

    Hi,
    I am using Xerces2 Java Parser 2.4.0,
    I wanta parse an XML string, not an XML file, but
    in the Parser class there is only following methods:
    parse(InputSource source)
    parse(java.lang.String systemId)
    thanks

    hi
      InputSource is = new InputSource(new ByteArrayInputStream(xmlSrc.getBytes()));
      HTH
    vasanth-ct

  • How can i develop charts using only xml defination

    how can i develop charts using only xml defination.can any one please let me know
    manks

    hello,
    in reports 6i the charts are created using oracle graphics which stores the chart definitions in a separate file (.OGD). there is not XML interface for graphics.
    with reports 9i and the introduction of the BIgraphBean the definition of the chart-properties is also done in XML.
    reports 9i will be available with iAS Release 2.
    regards,
    the oracle reports team

  • Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?

    Is there a way to create a project with custom audio settings that are NOT only "Stereo" or "Surround"?
    Thanks!
    -Adrian

    the old apps are on my computer but they have had upgrades since they were put on the ipod originally.  you think you would get a warning about this when you restored. I was not worried about losing the progress of the apps but i would have been worried about the app it self!!!!!

  • In Pages (5.2), in a table, superscript is not only not printing, but not printing the text around it. Bizarre

    In Pages (5.2), in a table, superscript is not only not printing, but not printing the text around it. Any answers?

    Known issue now for almost 9 months.
    Use Pages '09 if you have it.
    Peter

  • In the program pages there is a function that automatically will save may document not only one i click save

    in the program pages there is a function that automatically will save may document not only one i click save

    In Lion and Mountain Lion you must save the first time then it will autosave for you with versions.
    ForEverSave, a 3rd party application, might actually prompt you after a set period. Check it out and any alternatives.
    Peter

  • I updated my IPhone 3GS to the new 5.1 operating system and have since had a range of problems with not only my phone but also my IPad.

    I updated my IPhone 3GS to the new 5.1 operating system and have since had a range of problems with not only my phone but also my IPad.
    Programs (Safari, mail, messages) keep crashing, mail will not delete properly (some will keep popping into my inbox again for no reason!!!), slow, settings lock up etc. etc.
    This only seemed to become an issue once I updated to ios 5.1 and funnily also affected my Ipad even though i hadn't updated the software yet. I have since updated the software on my ipad thinking it might help too but that only made things worse!! So I am not sure if it's an ICloud issue, but when i try to disable ICloud my devices lock up as well.
    The battery life is also shocking!!
    I have hard reset both devices, restored both devices, reset the setting and tried a whole host of other suggestions (like closing background programs) on this forum buit nothing works and i am tearing my hair out.
    I looked in the phone and ipad log and there do seem to be low memory reports though i don't know why these are occuring now when they never have before??
    I don't know if I can restore the old operating system (If I can please let me know how). The phone or ipad are not jailbroken.

    but you should have a backup in itunes.
    Every time you sync your iOS device iTunes creates a backup. go check if its there, iTunes Preferences >Devices. and there you should see if you have a backup, and in case from which date the backup is.
    And ofcourse you can get your icloud data back by just logging in with your Appleid under icloud in settings on the iphone.
    But anyway, if the iPhone works when you restor it as new: try adding your backup, and see if the issue comes back. And experiment with your backup and try to work out what is causing the issue, my guess is that its some app!   Good Luck!

  • When I open a new windox in Firefox 3.6.10 on Windows XP, it opens not only a new window, but all my existing tabs reopen in the new window too--how do I fix this?

    Whenever I open a new window in Firefox, it not only opens a new window with a new tab, it also opens all my existing tabs a second time in the new window. This has been happening for several days. Closing Firefox and rebooting doesn't solve the problem.
    A related problem is that if I close all tabs and close Firefox, then reboot and re-open Firefox, all the tabs that were closed re-open too.
    This is new behavior in Firefox in my experience.

    Firefox opens the home pages in a new window, so if you want to open a new window blank then you need to set the home page to about:blank
    You can check the startup setting:<br />
    Tools > Options > General > Startup: "When Firefox Starts": "Show my home page" | "Show a blank page"

  • Okay, there are two accounts on one computer, and my account is the main one though ever since, I've been having issues with downloading new songs and apps onto my iPod touch. Not only that but now all of my music's gone from my library. How can I fix it?

    Has anyone ever had this problem before? I would love some advice on how to restore my library with all my music. I have 841 songs on my iPod touch and yet my iTunes library on my account says I have none, ever since my sister made her account on my laptop and some of her songs have gotten on mine (the main) account. Not only that but my iTouch doesn't seem to want to accept any other songs outside of its list. Any advice?

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • HT201250 Can I include external drives to be backed up using Time Machine.  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.

    Can I include external drives to be backed up using Time Machine?  Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents.  How do I know if they are included in the backup process?

    Yes, if they are not exclude then TM backs them up.
    Allan

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • Is there a way to access my old Notes only? I still have my old back up but I cant sync to my phone or it will corrupt it.

    I am using an iphone 5. Recently it malfunctioned and I was told by apple that my old back up had a corruption with it an caused my phone to malfunction. Apple had to redownload the operating system. I was also told that I can not use my old back on my phone I need to delete it and manually download everything. I DID NOT USE ICLOUD. However I do have my old back up still on my mac in itunes. Question below....
    Is there a way to access my old Notes only so I can rewrite them in my phone? I still have my old back up but I cant sync to my phone or it will corrupt it. I just want to access my notes so I can type them back into my notes on my fixed phone.

    you can restore from your backup again just to get the notes. once you've restored from the backup, copy your notes into your icloud notes group or email them to yourself - basically, get them somewhere else so they're not just locally stored on the device. once you've moved your notes elsewhere, restore the device as new again like apple had you do. this will again put a fresh version of the operating system on your phone like it has right now
    there's no other way to access the notes that are in your backup

  • Printing notes only?

    I have a presentation in Keynotes 09 which is finished but I am trying to print the notes on the various slides. I only seem to be able to print them with the slides and then they get reduced down to an unreadable font size.
    In (dare I say it) powerpoint you used to be able to select file > send to> Word> and print notes only but I can't seem to be able to do it with Keynotes can anyone help please.
    No point in saying send it to powerpoint as it does not work either as I have used the bits in 09 to make it ....
    Thanks
    Nick

    According to the 4th level deep in Microsoft Office Support.  The only way to print just the notes pages is to select each page or series of pages that you want to print (in a single print action)  and print it, skipping the slides with not notes.  You can't even print a few pages of just the notes, where they could print a few lines for every slide identifying the slide number. and if there was no note, leave it blank, and if there was a note, put it in. 
    It's no wonder I only use Microsoft when I have to.  Does anyone know if Keynote would have given me this option?

  • Hello  I bought my wife a new MacBook Pro, in setting it up for her, I took her Time Machine external drive to migrate onto the new machine but her old MBP not only was on 10.6, it was my old machine which I was still Administrator for.  i plugged in the

    Hello
    I bought my wife a new MacBook Pro, in setting it up for her, I took her Time Machine external drive to migrate onto the new machine but her old MBP not only was on 10.6, it was my old machine which I was still Administrator for.
    i plugged in the external drive to start the migration process after entering her name and username from the old machine which gave me the options on transferring the old data over.
    I also unchecked the Administrative end that had my info hoping that ONLY her data, files, etc., would be the ones sent over to her new machine which I wanted her to be the ONLY Administrator for. All went like clockwork until the restart.
    Normally the screen should show the username and only need the password but both entries were blank, as in ‘Other’ sign in option available only. I entered her name and password, nothing….used her username and password, nothing. Used my old Administrator name and password, NOTHING!
    I tried defaulting to factory settings from the Restore feature but it directs me to notify Apple. I tried in Terminal to change the password, nothing. I tried to boot from MY external drive and it doesn’t recognize it. I tried to even use my external drive which actually has the Mavericks upgrade, nothing!
    Basically I can only get the startup screen which isn’t accepting the username/password or the Restore feature which doesn’t offer any options helpful!
    Please, how do I start from scratch and start over here? Or simply change the Administrator name and password so I can proceed with everything thats already on there? I wish I could even boot from another drive but no luck on anything!

    First, on the old machine, make your wife's account an admin one. Log into it and delete yours. Then, update the TM backup. Finally, use Internet recovery mode, ⌘⌥R, erase the HD, and restore the OS. One first boot, follow the steps outlined in Pondini's Setup New Mac guide.

Maybe you are looking for

  • Can someone help me figure out why this didn't work?

    I recently gave my iMac to my nieces....I erased and reinstalled the osx from my disks that came with the program. They HAD one of the Mac Minis (an old one...g4 I think). When we started up the iMac, I used the Firewire connection to transfer all th

  • Need help getting my MacBook to work a with a D-Link print server

    I'm trying to set up my MacBook Pro running OS X Ver 10.4.11 to print to a HP PSC 2210 All in One printer attached to a D-Link DP-301U print server. I'm actualy a Windows user and set this up and it works fine on the Windows side. My brother in law h

  • [solved] Installing on Acer Aspire One D150

    Arch installs fine. I'm looking at the wiki article and it says to go to Atheros' web site to download the drivers for the ethernet adapter. There's a problem with that. The site isn't up. Every post I've found on Google and here, even some fairly re

  • LOV Filtering on OLAP universe

    Hi i have a BOXI 3.1 SP2 FP2.6 universe on top of a bex query (BW BI 7 SP5) my bex query contains a variable 'ready for input' which give me a prompt condition on BO universe. My BO condition has the default LOV <Variable name> which gives me 2 hidde

  • I can not remember my iphone backup password, jus got new phone

    hi i lost my iphone 4 so brought new iphone 5 but when trying to get all my old contacts from my backup its asking for a password i can not remember, how do i reset this password