XML and external parameter entities
| From: | Pawel | Date: | Thu, 27 Jun 2002 12:27:17 +0000 |
| Subject: | XML and external parameter entities | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-104148@lists.php.net to get a copy of this message | ||
Hello,
I'm having a hard time getting expat to parse external parameter entities
and I'm wondering if any one tried this before (general entities work fine)
sample xml:
--------------------------------------------
<?xml version='1.0'?>
<!DOCTYPE alfs [
<!ENTITY % common_entities SYSTEM "00-entities-00">
%common_entities;
]>
.....
---------------------------------------------
as the name suggests, the file "00-entities-00" contains common general entities
shared between multiple .xml's
Expat's external_entity_ref_handler doesn't catch parameter entities, but I'm
not even sure it should.
My question is: How should I parse something like this ?
Any hints appreciated
Pawel
PS. php version 4.3.0-dev (cli) (cvs from 6/25/02)