Thread: Xml

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0

    Xml


    Hi,
    I have Multiple Dynamic XML's which I need to Insert into my database and Display in Real time.

    All the XML's are in different Formats.
    Please Guide how to do that .
    How can i Convert all the XMl's in Standard Formats. and display them in Real time.
  2. #2
  3. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,960
    Rep Power
    9397
    If they're in different formats then you'll need different code to read each. And unless you actually want to store XML then I don't think it's worth trying to convert them into some common format; read the data and insert into the database.

    Whatever displays that data, displays that data.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Hi,
    The Data is Too Large hence I have to Display and in real time to the Response is Fast for the end user.
    If I store and then Display the it takes quite a long time to Display the search results.
    SO I have no options but have to read and display the XML's in real time and then store it.
    so i do not have to fetch the data in the result page.

    Can u guide me with an Example where i can do both the things at a time...
  6. #4
  7. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,960
    Rep Power
    9397
    As far as PHP is concerned, store then display is the same thing as display then store. The script won't end until both happen.

    If the storage really does take a long time then do it in the background: use a cronjob that processes the data. Then the display code merely has to display whatever is in the database without worrying about updating it.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Originally Posted by requinix
    As far as PHP is concerned, store then display is the same thing as display then store. The script won't end until both happen.

    If the storage really does take a long time then do it in the background: use a cronjob that processes the data. Then the display code merely has to display whatever is in the database without worrying about updating it.

    I cannot Use a Cron Job as the Results are Dynamic Every time.
    Is there any other Alternative?
  10. #6
  11. Did you steal it?
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,960
    Rep Power
    9397
    If you can do it in PHP code then you can do it in a cronjob. I'm thinking you might not understand how that works?
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    4
    Rep Power
    0
    Originally Posted by requinix
    If you can do it in PHP code then you can do it in a cronjob. I'm thinking you might not understand how that works?
    Can u suggest me an Example where I find something on the same line

IMN logo majestic logo threadwatch logo seochat tools logo