<author><surname>Turner</surname><firstname>Myron</firstname></author> </articleinfo> <formalpara><title></title><para></para></formalpara> <toc> <title>XML_PullParser Contents</title> <tocpart> HEADER; require_once "XML_PullParser.inc"; $files = array(); $file = "synopsis.xml"; $xml_outfile = "XML_PullParser_contents.xml"; $html_outfile = "html_contents.html"; $handle = openOutputFile($xml_outfile); $html_handle = openOutputFile($html_outfile); writeHeader($handle); writeText($html_handle, $HTML_Header); echo "<A href = \"article2html.php?fn=synopsis.xml\">Synopsis</A><br>\n"; writeEntry($handle, "synopsis.xml", "Synopsis"); writeHTMLEntry($html_handle, "synopsis.xml", "Synopsis"); while ($file = toc($file)) { } writeFooter($handle, $xml_outfile); writeHTMLFooter($html_handle, $html_outfile); function toc($file) { global $handle, $html_handle; global $files; $tags = array("para"); $child_tags = array("ulink");
$constants = array("XML_PullParser_ERROR_BAD_INTERNAL_ARRAY", "XML_PullParser_ERROR_BAD_PARAM", "XML_PullParser_ERROR_DEF", "XML_PullParser_ERROR_MISMATCHED_TAGS", "XML_PullParser_ERROR_NO_DATA", "XML_PullParser_ERROR_NO_DEFAULT_TOKEN", "XML_PullParser_ERROR_NO_TOKEN", "XML_PullParser_ERROR_SYSTEM", "XML_PullParser_ERROR_USER_DEFINED", "XML_PullParser_ERROR_NS_SUPPORT"); $constants_array = array(); $constants_pattern = ""; foreach ($constants as $c) { $constants_pattern .= $c . '|'; } $constants_pattern = rtrim($constants_pattern, '|'); $constants_pattern = "/({$constants_pattern})/i"; require_once "XML_PullParser.inc"; $fn_names = array(); $file_names = array(); $file_names_index = 0; $xml_outfile = "XML_PullParser_index.xml"; get_array(); file_loop(); $handle = openOutputFile(); writeHeader($handle); writeText($handle, "<indexdiv><title>Index of Defined Constants</title>\n"); ksort($constants_array); foreach ($constants_array as $const => $val) { $val = array_unique($val); $citation_str = ""; foreach ($val as $index) { $citation_str .= formatSectionCitations($file_names[$index]); } writeEntry($handle, $const, $citation_str, "varname"); } writeText($handle, "</indexdiv>\n"); writeText($handle, "<formalpara><title></title><para><![CDATA[ <BR /> ]]></para></formalpara>"); writeText($handle, "<indexdiv><title>Method and Function Index</title>\n"); ksort($fn_names);