XML parsing woes...

    Date: 12/15/07 (PHP Community)    Keywords: php, mysql, xml, database, sql

    Okay, so while I'm relatively good with PHP, I'm not so good with PHP 4's XML handling, and I'm having some problems creating an XML parser that will read tag attributes (which I'm then putting into a MySQL database).

    I've tried a half-dozen different examples of parsers that others have done, and none seem able to pull the attributes out. I have no say in how it's structured, so I have to find a way to deal with it as is. My XML looks something like this:



       
          
             <br />            Blah blah blah...<br />         
             
                Big long description goes here.
             

             
                0000-00-00T00:00:00-0500
             

          

       




    Everything else parses fine, except those damn description attributes. They seem to just disappear into the ether.

    Anyone know of an easy way (outside of PHP 5, not an option in this situation) that I can get the info I need?

    Source: http://community.livejournal.com/php/603991.html

« apache + mod_ssl +... || random text »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home