T
Tobias
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 [
<!ENTITY comp1 SYSTEM "comp1.xml">
]>
<components>&comp1;</components>
comp1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<component name="comp1"/>
When I parse this with:
root = (REXML:
ocument.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
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 [
<!ENTITY comp1 SYSTEM "comp1.xml">
]>
<components>&comp1;</components>
comp1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<component name="comp1"/>
When I parse this with:
root = (REXML:
puts root.text
.... it doesn't resolve the external entity. What am I doing wrong, or
doesn't REXML support external entities?
Greetings,
Tobias