public static function fromXmlDom($version, \DOMElement $element, $options = array())
{
if ($element->tagName != static::$resource_type) {
return static::errorInit($version, array("Mismatched root tag {$element->tagName} for resource type " . static::$resource_type));
}
$obj = new static($version, $options);
$obj->parseXml($element, $options);
return $obj;
}