Re: Re[2]: Entity parsing
Brought to you by:
bs_php,
nigelswinson
From: Peter R. <php...@pe...> - 2002-05-24 10:31:09
|
On Friday 24 May 2002 10:44, Sam Blum wrote: > Assuming we would let expat parse the entity in the sample below > <!ENTITY ourname "Perfect Programmers>"> > <&ourname; > > and would generate a file with one of the export-functions of Php.XPath the > result would be: > <!ENTITY ourname "Perfect Programmers>"> > <Perfect Programmers> > > All defined entities (plus the 5 xml entities) have been replaces and any > changes to <!ENTITY ourname "Perfect Programmers"> in the exported file > would have *no effect* any more! Even worse the < and > have been > replaced too! ok, so this means if you are importing/parsing in order to change/rewrite the file, then you don't want entities parsed (treat & as &); if for outputing to some other medium such as html, then you do. So . . . can we have it switchable please, passing over a y/n parameter to the import functions. |