Hello all,
I've just started using dom4j, and have a very basic question which I
haven't been able to find the answer to in the documentation:
How to I make dom4j automatically expand the entities in my XML
document?
If i have the following document:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Example [
<!ENTITY foo "bar">
]>
<Example>
&foo;
</Example>
, and the following piece of code:
SAXReader reader = new SAXReader();
Document document;
Node node;
document = reader.read("example.xml");
node = document.selectSingleNode("Example");
... I'd like node.getStringValue() to return "bar". Unfortunately, it
returns "&foo;".
Any help greatly appreciated!
Regards,
Tobias Moberg ------------------------------------------------------- This sf.net email is sponsored by: viaVerio will pay you up to $1,000 for every account that you consolidate with us. http://ad.doubleclick.net/clk;4749864;7604308;v? http://www.viaverio.com/consolidator/osdn.cfm _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
