Try/catch block in Xml::build