SimpleXML compat