Quantcast
Channel: Parsing and XML product feed - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Kenney for Parsing and XML product feed

You can do it with DOMDocument.loadXML() and DOMDocument.getElementsByTagName(): $doc = new DOMDocument(); $doc->loadXML( "<your-xml/>" ); $products = []; foreach (...

View Article



Parsing and XML product feed

I have an XML product feed that I am parsing with PHP to load products into a database. I need to get each element into an array of $products = array() such as: $products[AttributeID] = value This is...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images