Hi!
Unfortunately, the REXML-site seems to be down, but maybe you can help
mw with this:
I’m trying to read a xml document, that includes external entities.
Basically it looks like this:
components.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE components []>
&comp1;
comp1.xml:
<?xml version="1.0" encoding="UTF-8"?>When I parse this with:
root = (REXML::Document.new(File.new(“components.xml”))).root
puts root.text
… it doesn’t resolve the external entity. What am I doing wrong, or
doesn’t REXML support external entities?
Greetings,
Tobias