Procedural File: xmllib.php
Source Location: /classes/xmllib.php
Page Details:
A script that reads xml documents without the need of an external library Useful for reading configuration data or content data, that would otherwise have been placed in a db
known bugs/limitations : - doesn't cope well with erraneous files - so be sure to validate
- a lot of the special tags like doctype etc. aren't handled well
- external doctype definitions are accepted though (but ignored)
- methods and behaviour doesn't follow the W3C DOM specification correctly, although mostly.
usage : - // open and read file
- $xml =& new XmlLib_xmlParser($filename);
- // parse document and return rootnode
- $doc =& $xml->getDocument();
disclaimer : this piece of code is freely usable by anyone. if it makes your life better, remember me in your eveningprayer. if it makes your life worse, try doing it any better yourself.
Tags:
_XMLLIB_INTERNAL_ENCODING [line 33]
_XMLLIB_IS_UTF8 [line 37]
|