<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.xml.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'book.xml.php',
    1 => 'XML Parser',
    2 => 'XML Parser',
  ),
  'up' => 
  array (
    0 => 'refs.xml.php',
    1 => 'XML Manipulation',
  ),
  'prev' => 
  array (
    0 => 'xmldiff-file.merge.php',
    1 => 'XMLDiff\\File::merge',
  ),
  'next' => 
  array (
    0 => 'xml.setup.php',
    1 => 'Installing/Configuring',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xml/book.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/book.xml.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="book.xml" class="book">
 
 <h1 class="title">XML Parser</h1>
 
 
 <div id="intro.xml" class="preface">
  <h1 class="title">Introduction</h1>
  <p class="para">
   XML (eXtensible Markup Language) is a data format for structured
   document interchange on the Web.  It is a standard defined by
   The World Wide Web consortium (W3C).  Information about XML and
   related technologies can be found at <a href="http://www.w3.org/XML/" class="link external">&raquo;&nbsp;http://www.w3.org/XML/</a>.
  </p>
  <p class="para">
   This PHP extension implements support for James Clark&#039;s
   <span class="productname">expat</span> in PHP.  This toolkit lets you
   parse, but not validate, XML documents.  It supports three
   source <a href="xml.encoding.php" class="link">character encodings</a>
   also provided by PHP: <code class="literal">US-ASCII</code>,
   <code class="literal">ISO-8859-1</code> and <code class="literal">UTF-8</code>.
   <code class="literal">UTF-16</code> is not supported.
  </p>
  <p class="para">
   This extension lets you <a href="function.xml-parser-create.php" class="link">create XML parsers</a>
   and then define <em>handlers</em> for different XML
   events.  Each XML parser also has a few <a href="function.xml-parser-set-option.php" class="link">parameters</a> you
   can adjust.
  </p>
 </div>
 
 
 







 




 






 






 






 






 





 







 





<ul class="chunklist chunklist_book"><li><a href="xml.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="xml.requirements.php">Requirements</a></li><li><a href="xml.installation.php">Installation</a></li><li><a href="xml.resources.php">Resource Types</a></li></ul></li><li><a href="xml.constants.php">Predefined Constants</a></li><li><a href="xml.eventhandlers.php">Event Handlers</a></li><li><a href="xml.case-folding.php">Case Folding</a></li><li><a href="xml.error-codes.php">Error Codes</a></li><li><a href="xml.encoding.php">Character Encoding</a></li><li><a href="xml.examples.php">Examples</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="example.xml-structure.php">XML Element Structure Example</a></li><li><a href="example.xml-map-tags.php">XML Tag Mapping Example</a></li><li><a href="example.xml-external-entity.php">XML External Entity Example</a></li><li><a href="example.xml-parsing-with-class.php">XML Parsing With Class</a></li></ul></li><li><a href="ref.xml.php">XML Parser Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.xml-error-string.php">xml_error_string</a> — Get XML parser error string</li><li><a href="function.xml-get-current-byte-index.php">xml_get_current_byte_index</a> — Get current byte index for an XML parser</li><li><a href="function.xml-get-current-column-number.php">xml_get_current_column_number</a> — Get current column number for an XML parser</li><li><a href="function.xml-get-current-line-number.php">xml_get_current_line_number</a> — Get current line number for an XML parser</li><li><a href="function.xml-get-error-code.php">xml_get_error_code</a> — Get XML parser error code</li><li><a href="function.xml-parse.php">xml_parse</a> — Start parsing an XML document</li><li><a href="function.xml-parse-into-struct.php">xml_parse_into_struct</a> — Parse XML data into an array structure</li><li><a href="function.xml-parser-create.php">xml_parser_create</a> — Create an XML parser</li><li><a href="function.xml-parser-create-ns.php">xml_parser_create_ns</a> — Create an XML parser with namespace support</li><li><a href="function.xml-parser-free.php">xml_parser_free</a> — Free an XML parser</li><li><a href="function.xml-parser-get-option.php">xml_parser_get_option</a> — Get options from an XML parser</li><li><a href="function.xml-parser-set-option.php">xml_parser_set_option</a> — Set options in an XML parser</li><li><a href="function.xml-set-character-data-handler.php">xml_set_character_data_handler</a> — Set up character data handler</li><li><a href="function.xml-set-default-handler.php">xml_set_default_handler</a> — Set up default handler</li><li><a href="function.xml-set-element-handler.php">xml_set_element_handler</a> — Set up start and end element handlers</li><li><a href="function.xml-set-end-namespace-decl-handler.php">xml_set_end_namespace_decl_handler</a> — Set up end namespace declaration handler</li><li><a href="function.xml-set-external-entity-ref-handler.php">xml_set_external_entity_ref_handler</a> — Set up external entity reference handler</li><li><a href="function.xml-set-notation-decl-handler.php">xml_set_notation_decl_handler</a> — Set up notation declaration handler</li><li><a href="function.xml-set-object.php">xml_set_object</a> — Use XML Parser within an object</li><li><a href="function.xml-set-processing-instruction-handler.php">xml_set_processing_instruction_handler</a> — Set up processing instruction (PI) handler</li><li><a href="function.xml-set-start-namespace-decl-handler.php">xml_set_start_namespace_decl_handler</a> — Set up start namespace declaration handler</li><li><a href="function.xml-set-unparsed-entity-decl-handler.php">xml_set_unparsed_entity_decl_handler</a> — Set up unparsed entity declaration handler</li></ul></li><li><a href="class.xmlparser.php">XMLParser</a> — The XMLParser class</li></ul></div><?php manual_footer($setup); ?>