XML mapping urgh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stashnetwork
    So Fucking Banned
    • Jun 2012
    • 66

    #1

    XML mapping urgh

    So I need to map xml feeds and store the mappings in MYSQL.

    Right now I use simplexml to parse the xml feed.

    Code:
    $xml = simplexml_load_file($feed['xml_feed']);
    But the next problem is this, I have fields in the database like field_file, field_thumbnail.

    Inside field_file I have:

    Code:
    clips->clip->flv
    Now obviously doing this doesn't work...

    PHP Code:
    $file = $xml->item->$db['field_file']; 
    
    Any idea on the best way for doing this....
  • Tube Ace
    So Fucking Banned
    • Nov 2008
    • 4941

    #2
    There's an app for that...

    Comment

    • freecartoonporn
      Confirmed User
      • Jan 2012
      • 7683

      #3
      i dont get it, what are you trying to do ...

      try serialize
      SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean

      Comment

      • just a punk
        So fuckin' bored
        • Jun 2003
        • 32393

        #4
        What are you trying to do?
        Obey the Cowgod

        Comment

        • stashnetwork
          So Fucking Banned
          • Jun 2012
          • 66

          #5
          Originally posted by CyberSEO
          What are you trying to do?
          trying to get this to parse...

          $file = $xml->item->$db['field_file'];

          it should be $xml->item->clips->clip->flv.


          The $db['field_file'] = clips->clip->flv

          Comment

          • stashnetwork
            So Fucking Banned
            • Jun 2012
            • 66

            #6
            Originally posted by Tube Ace
            There's an app for that...
            A class? I need something to integrate it with my own code.

            Comment

            Working...