downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/xml.error-codes.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/book.xml.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'xml.error-codes.php',
   
1 => 'Error Codes',
  ),
 
'up' =>
  array (
   
0 => 'book.xml.php',
   
1 => 'XML Parser',
  ),
 
'prev' =>
  array (
   
0 => 'xml.case-folding.php',
   
1 => 'Case Folding',
  ),
 
'next' =>
  array (
   
0 => 'xml.encoding.php',
   
1 => 'Character Encoding',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div>
 <h1>Error Codes</h1>

 <p class="para">
  The following constants are defined for XML error codes (as
  returned by <a href="function.xml-parse.php" class="function">xml_parse()</a>):
  </p><ul class="simplelist">
   <li class="member">XML_ERROR_NONE</li>
   <li class="member">XML_ERROR_NO_MEMORY</li>
   <li class="member">XML_ERROR_SYNTAX</li>
   <li class="member">XML_ERROR_NO_ELEMENTS</li>
   <li class="member">XML_ERROR_INVALID_TOKEN</li>
   <li class="member">XML_ERROR_UNCLOSED_TOKEN</li>
   <li class="member">XML_ERROR_PARTIAL_CHAR</li>
   <li class="member">XML_ERROR_TAG_MISMATCH</li>
   <li class="member">XML_ERROR_DUPLICATE_ATTRIBUTE</li>
   <li class="member">XML_ERROR_JUNK_AFTER_DOC_ELEMENT</li>
   <li class="member">XML_ERROR_PARAM_ENTITY_REF</li>
   <li class="member">XML_ERROR_UNDEFINED_ENTITY</li>
   <li class="member">XML_ERROR_RECURSIVE_ENTITY_REF</li>
   <li class="member">XML_ERROR_ASYNC_ENTITY</li>
   <li class="member">XML_ERROR_BAD_CHAR_REF</li>
   <li class="member">XML_ERROR_BINARY_ENTITY_REF</li>
   <li class="member">XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF</li>
   <li class="member">XML_ERROR_MISPLACED_XML_PI</li>
   <li class="member">XML_ERROR_UNKNOWN_ENCODING</li>
   <li class="member">XML_ERROR_INCORRECT_ENCODING</li>
   <li class="member">XML_ERROR_UNCLOSED_CDATA_SECTION</li>
   <li class="member">XML_ERROR_EXTERNAL_ENTITY_HANDLING</li>
  </ul><p>
 </p>
</div>
<?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites