Wrappers for the PHP DomDocument class to provide extra functionality for html/xml parsing