Wrappers around the PHP DOM classes.