Hello. I'm hoping someone may be of some assistance. I am working with XML::Parser::Expat mod and I'm having trouble resolving external entities using the ExternEnt Handler. My whole purpose is to resolve each entity to it's ASCII equivalent OR strip out the entity if it's no in the my entity list. I'm declaring the external entities in my XML
files like so:
<!DOCTYPE name SYSTEM "[some path]/entity.list">
The entity.list has all my entities. One example is:
<!ENTITY é "e">
When I parse each XML file the ExternEnt Handle is not being hit or
called. I'm assuming it's not recognizing my file of entities. Am I
missing something? Do you have any insight as to what I'm doing wrong?
What I did do was take some of the entities in my list and place them
directly in my XML file like so:
<!DOCTYPE name SYSTEM "/[some path]/entity.list"
[
<!ENTITY é "e">
]>
Then I used the Entity Handler, and it worked! The entity resolved to
the appropriate value. This is not the ideal method for me to used though because I have no control in creating the XML file.
I hope I have given enough detail and I hope that you are able to help OR point me in the right direction to come up with the answer to my problem. I would greatly appreciate any advice or comments. Thanks!
Adam J. Dobrozsi