SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML File From DB -> DOMDocument

    I have an XML file stored in DB.

    What is the correct method to prepare an XML file stored in a DB for

    the DomXML functions?

    PHP Code:
    $doc->load($fileDataFromDB); 
    Have tried file_get_contents($fileDataFromDB)

    The only way I have been able to work with the XML File Data from DB is to quickly create a temp.xml, write the DB filedata to the file close it point to temp.xml then unlink('temp.xml') before outputting the aggregated data need for display and styling from the DOM functions. Very Hackish

  2. #2
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Code php:
    $doc->loadXML($fileDataFromDB);
    Saul

  3. #3
    SitePoint Evangelist Tecknowjnkie's Avatar
    Join Date
    Nov 2004
    Location
    Mission Viejo
    Posts
    403
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you - Even Faster:-)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •