Hi Mortimer,
Can you paste an extract of the actual XML you are trying to parse? With that i should be able to help out
Cheers
So Im working on a script to parse my first XML feed and so far it's going pretty well (I think!)
I've come up against a slight issue that I could use some help with though. The merchant is adding a fair bit of information as attributes to a central node.
For example:
[prod id=643753 pre_order="no" in stock="yes" bestseller="yes"]
My question is, how can I extract something like the instock attribute and insert it into it's own field in my database when it's part of a parent tag?
Thanksin advance for your help
Posted via my Mobile Device
Hi Mortimer,
Can you paste an extract of the actual XML you are trying to parse? With that i should be able to help out
Cheers
Hi MortimerJazz,
I'd recommend having a quick look through this page, this should explain everything you need to know for this.
PHP: SimpleXMLElement::children - Manual
Hope that helps
Thanks
Simon
Simon Quick
Data Quality Manager, buy.at
simon.quick@buy.at || Twitter: http://twitter.com/BuyAtFeeds
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks