previousPEAR_XMLParser::parse (Previous) (Next) PEAR Installer: customizing the installer itselfnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Turkish

PEAR_XMLParser::preProcessStupidSaxon

PEAR_XMLParser::preProcessStupidSaxon() – pre-process xml to weed out characters/entities that would kill parsing

Synopsis

require_once '/XMLParser.php';

string PEAR_XMLParser::preProcessStupidSaxon ( string $data )

Description

This method examines xml data prior to parsing and replaces all entities like à with their equivalent (à in this case). It also scans the file for any non-ascii characters like à and replaces them with their entity equivalent (&#224).

This prevents saxon in PHP 4 and PHP 5 from choking on non-ISO-8859-1 characters.

Parameter

string $data

The xml data.

Throws

throws no exceptions thrown

Note

This function can not be called statically.

previousPEAR_XMLParser::parse (Previous) (Next) PEAR Installer: customizing the installer itselfnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.