XML processing

    Date: 07/01/05 (PHP Community)    Keywords: php, xml, database

    Hi everyone, I am having some problems processing an XML document with PHP.

    I know the XML doc is well formed and valid, I would post it but I cant seem to figure out how to post XML without it being processed. The structure of the document is as follows.

    updates
         franchise
              CRH
                   SN
                   FID
              CRH
              CRH
                   SN
                   FID
              CRH
              CRH
                   SN
                   FID
              CRH
         franchise
    updates
    


    What I want, is to extract each CRH record with its SN and FID so that I can insert it into a database. I have been trying to use the DOM XML modules for PHP but the results I get are not what I expect. The documentation is a little sparse and I just learning XML so I was hoping you all might be able to help me out. When I extract 'franchise' I would expect that I would get a multi dimensional array from which I can pull the records. I dont seem to be getting that.

    Any help on the correct procedures for this would be appreciated.

    Source: http://www.livejournal.com/community/php/313981.html

« Creating a table dynamically || Failure of PHP to work with... »


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