Comunitatea PHP Romania
 

 
PEAR_XMLParser::preProcessStupidSaxon

PEAR_XMLParser::preProcessStupidSaxon()

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

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.

Ultimele discutii in forum RSS Forum

Ultimele articole Ultimele articole

Top membri

Pirahna Pirahna
la birou
carco carco
Bucuresti
Birkoff Birkoff
Bucuresti
Mascka Mascka
Braila
raul_ raul_
whooper whooper
Toronto ON
mihaitha mihaitha
Sibiu
gabysolomon gabysolomon
Bacau
oriceon oriceon
Constanta
garlicinicolae garlicinicolae

Newsletter


Email:
 inscriere
 renuntare
 
 Arhiva newsletter

Parteneriat

Copyright © 2001-2008 PHP Romania Add PHPRomania to Google Add PHPRomania to Del.icio.us Add PHPRomania to Stumbleupon Add PHPRomania to Yahoo! Add PHPRomania to Digg Add PHPRomania to Blink Loans | Celebrities | Credit Cards | Mobile Phone | Cheap Loan
Ads: Partener Way2Web Nework: gazduire web | inregistrare domenii | web design | imobiliare | web hosting
Powered by Simplis