Fix XML parsing of SwatUI in PHP 5.2.x. This does two things. Firstly, this change explicitly sets parsing options for validation and default attribute resolution on the document object before loading the XML file. These were previously implictly set in PHP. Secondly, the load() method is no longer called statically. Calling load statically triggers an E_STRICT error. As a result of these two changes, the error handling code can be slightly simplified.
Fix XML parsing of SwatUI in PHP 5.2.x. This does two things. Firstly, this change explicitly sets parsing options for validation and default attribute resolution on the document object before loading the XML file. These were previously implictly set in PHP. Secondly, the load() method is no longer called statically. Calling load statically triggers an E_STRICT error. As a result of these two changes, the error handling code can be slightly simplified.

svn commit r13256

silverorange/swat,silverorange/swat