dom_import_simplexml() doesn't appear to be used.
length is a property of DomNodeList, not DomElement. #477