* $nodes =& XML_DTD_XmlParser::factory('file.xml');
* if (PEAR::isError($nodes)) {
* die($nodes->getMessage());
* }
*
*
* @category XML
* @package XML_DTD
* @author Igor Feghali
* $validator = XML_DTD_XmlValidator;
* // This will check if the xml is well formed
* // and will validate it against its DTD
* if (!$validator->isValid($dtd_file, $xml_file)) {
* die($validator->getMessage());
* }
*
*
* @category XML
* @package XML_DTD
* @author Tomas V.V.Cox This sample article was created completely from scratch in order to illustrate various features of NITF. Parts of it are somewhat contrived, in order to illustrate as much of the DTD as possible.
Superb weather in Norfolk today. Tides coming in and out as per usual.
The weather was superb today in Norfolk, Virginia. Made me want to take
out my boat, manufactured by the
Tides in Norfolk are running normal today. This weeks article highlights many of this week's fishing issues, and also presents a reference table of tide times.
As can be seen from the table below, the shores of Oceanview again present the brightest spots for fishermen and sandcastle-builders alike.
This is a table filled with weather data, good for fishermen living in Norfolk, Virginia.
today | tide | tomorrow | next day | third day | ||||||
---|---|---|---|---|---|---|---|---|---|---|
beach | high | low | in | out | high | low | high | low | high | low |
Sunset | 30 | 14 | 09:23 | 18:51 | 28 | 11 | 31 | 12 | 33 | 9 |
Oceanview | 31 | 15 | 09:25 | 18:56 | 26 | 11 | 31 | 11 | 31 | 9 |
Shellfish | 29 | 15 | 09:25 | 18:53 | 26 | 9 | 29 | 11 | 30 | 11 |
Based on these tide tables, I believe you can see that this weekend stands to be an excellent one for small- or large-scale fishing exhibitions.
There are many local nooks that fishing fans may want to keep a special eye one.
Happy fishing everybody!
* // 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);
*
*
* @category XML
* @package XML_DTD
* @author Tomas V.V.Cox
* [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
* )
* )
* )
* )
*
*
* @category XML
* @package XML_DTD
* @author Tomas V.V.Cox