PHP: SimpleXML Class