in reply to Suppressing XML::LibXML External Parameter Entity Expansion

Sounds like you should replace
<!DOCTYPE student [ <!ENTITY % student SYSTEM "http://www.university.com/student.dtd"> %student; ]>
with
<!DOCTYPE student SYSTEM "http://www.university.com/student.dtd">

I am [already] turning off the expand_entities option, and it works throughout the rest of the document

And you might want to place a bug report.

Replies are listed 'Best First'.
Re^2: Suppressing XML::LibXML External Parameter Entity Expansion
by scotth (Initiate) on Mar 30, 2010 at 13:42 UTC

    A co-worker pointed out that the XML example that I used was not the best. It is not actually the DTD that is being included as an entity, but rather an external entity file. Here is a better example of the XML:

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE studentPackage [ <!ENTITY % StudentEntities PUBLIC "ISO 9999-9999//ENTITIES Student C +haracter Entities 20100330//EN//XML" "http://www.student.org/Student_ +1-0/ent/StudentEntities"> %StudentEntities; ]>