![]() |
serialize XML Category
I have been working on this for around 2 days now, Having the same issue it seems that I can serialize the categories.
They return the following Code:
Array ( [0] => SimpleXMLElement Object ( ) ) a:1:{i:0;O:16:"SimpleXMLElement":0:{}}PHP Code:
|
PHP Code:
|
For simple XML adamdecaf's solution should work just fine. However, if you plan on parsing loosely-typed XML (like HTML) and you don't want to mangle the data then you will have to use the DOMDocument class to manually parse the XML.
I wrote a class for Dingo that safely serializes and de-serializes loosely-typed XML by using the DOMDocument class, but you won't be able to get your hands on that until Oct 1. |
| All times are GMT. The time now is 10:33 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0