* // Create a new XML_DTD parser object * $dtd_parser = new XML_DTD_Parser; * // Do the parse and return a XML_DTD_Tree object * // containing the DTD tree representatio. * $dtd_tree = $dtd_parser->parse($dtd_file); *
* [elements] => array( * => array( * [children] => array( * 0 => //allowed children array * ), * [child_validation_pcre_regex] => string, // The regex for validating * // the list of childs * [child_validation_dtd_regex] => string, // The DTD element declaration * [content] => string // null, #PCDATA, EMPTY or ANY * [attributes] => array( * => array( * [opts] => (array|string), // enumerated or CDATA * [defaults] => (#IMPLIED|#REQUIRED|#FIXED|value), * [fixed_value] => string // only when defaults is #FIXED * ) * ) * ) * ) *