On 2/22/2012 8:32 AM, marco@xxxxxxxxxx wrote:
There is another nice way.
You can pass a second value to the simple xml constructor which is a class
name to be used instead of SimpleXMLElement.
You can write your own class that extends SimpleXMLElement and override the
magic methods to skip the casting
I don't really see a need to add an extra layer or class extension when
casting works fine. Am I wrong? Why add several lines of code in an
extension class?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php