New methods on XML.php