From 8eae845e64e3b296c0478d41f4df8b67acbbb075 Mon Sep 17 00:00:00 2001 From: Gabor Hojtsy Date: Sun, 28 Jul 2002 13:23:55 +0000 Subject: [PATCH] Adding constants here and a small restructuring git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90166 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/xml/constants.xml | 316 ++++++++++++++++++++++++++++++++++++ reference/xml/reference.xml | 109 +++++++------ 2 files changed, 379 insertions(+), 46 deletions(-) create mode 100644 reference/xml/constants.xml diff --git a/reference/xml/constants.xml b/reference/xml/constants.xml new file mode 100644 index 0000000000..0e4e1fba09 --- /dev/null +++ b/reference/xml/constants.xml @@ -0,0 +1,316 @@ + + +
+ &reftitle.constants; + &extension.constants; + + + + XML_ERROR_NONE + (integer) + + + + + + + + + + XML_ERROR_NO_MEMORY + (integer) + + + + + + + + + + XML_ERROR_SYNTAX + (integer) + + + + + + + + + + XML_ERROR_NO_ELEMENTS + (integer) + + + + + + + + + + XML_ERROR_INVALID_TOKEN + (integer) + + + + + + + + + + XML_ERROR_UNCLOSED_TOKEN + (integer) + + + + + + + + + + XML_ERROR_PARTIAL_CHAR + (integer) + + + + + + + + + + XML_ERROR_TAG_MISMATCH + (integer) + + + + + + + + + + XML_ERROR_DUPLICATE_ATTRIBUTE + (integer) + + + + + + + + + + XML_ERROR_JUNK_AFTER_DOC_ELEMENT + (integer) + + + + + + + + + + XML_ERROR_PARAM_ENTITY_REF + (integer) + + + + + + + + + + XML_ERROR_UNDEFINED_ENTITY + (integer) + + + + + + + + + + XML_ERROR_RECURSIVE_ENTITY_REF + (integer) + + + + + + + + + + XML_ERROR_ASYNC_ENTITY + (integer) + + + + + + + + + + XML_ERROR_BAD_CHAR_REF + (integer) + + + + + + + + + + XML_ERROR_BINARY_ENTITY_REF + (integer) + + + + + + + + + + XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF + (integer) + + + + + + + + + + XML_ERROR_MISPLACED_XML_PI + (integer) + + + + + + + + + + XML_ERROR_UNKNOWN_ENCODING + (integer) + + + + + + + + + + XML_ERROR_INCORRECT_ENCODING + (integer) + + + + + + + + + + XML_ERROR_UNCLOSED_CDATA_SECTION + (integer) + + + + + + + + + + XML_ERROR_EXTERNAL_ENTITY_HANDLING + (integer) + + + + + + + + + + XML_OPTION_CASE_FOLDING + (integer) + + + + + + + + + + XML_OPTION_TARGET_ENCODING + (integer) + + + + + + + + + + XML_OPTION_SKIP_TAGSTART + (integer) + + + + + + + + + + XML_OPTION_SKIP_WHITE + (integer) + + + + + + + + +
+ + + diff --git a/reference/xml/reference.xml b/reference/xml/reference.xml index 85a752fe8a..1476b9e062 100644 --- a/reference/xml/reference.xml +++ b/reference/xml/reference.xml @@ -1,41 +1,62 @@ - + XML parser functions XML -
- Introduction -
- About XML - - 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 &url.xml;. - -
-
- Installation - - This extension uses expat, which can - be found at &url.expat;. The - Makefile that comes with expat does not build a library by - default, you can use this make rule for that: - + +
+ &reftitle.intro; + + 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 &url.xml;. + + + This PHP extension implements support for James Clark's + expat in PHP. This toolkit lets you + parse, but not validate, XML documents. It supports three + source character encodings + also provided by PHP: US-ASCII, + ISO-8859-1 and UTF-8. + UTF-16 is not supported. + + + This extension lets you create XML parsers + and then define handlers for different XML + events. Each XML parser also has a few parameters you + can adjust. + +
+ +
+ &reftitle.required; + + This extension uses expat, which can + be found at &url.expat;. The + Makefile that comes with expat does not build a library by + default, you can use this make rule for that: + - - A source RPM package of expat can be found at &url.expat.rpm;. - + + A source RPM package of expat can be found at &url.expat.rpm;. + +
+ +
+ &reftitle.install; - Note that if you are using Apache-1.3.7 or later, you already + If you are using Apache-1.3.7 or later, you already have the required expat library. Simply configure PHP using (without any additional path) and it will automatically use the expat library @@ -57,25 +78,20 @@ libexpat.a: $(OBJS)
-
- About This Extension - - This PHP extension implements support for James Clark's - expat in PHP. This toolkit lets you - parse, but not validate, XML documents. It supports three - source character encodings - also provided by PHP: US-ASCII, - ISO-8859-1 and UTF-8. - UTF-16 is not supported. - - - This extension lets you create XML parsers - and then define handlers for different XML - events. Each XML parser also has a few parameters you - can adjust. - +
+ &reftitle.runtime; + &no.config; +
+ +
+ &reftitle.resources; + &no.resource; +
+ + &reference.xml.constants; + +
+ Event Handlers The XML event handlers defined are: @@ -215,6 +231,7 @@ libexpat.a: $(OBJS) +
Character Encoding @@ -263,7 +280,7 @@ libexpat.a: $(OBJS)
- Some Examples + &reftitle.examples; Here are some example PHP scripts parsing XML documents.