[jdom-interest] XML Entities in attributes
Bradley S. Huffman
hip at a.cs.okstate.edu
Fri May 13 07:49:01 PDT 2005
Christina B writes:
> I'm using JDom to create an XML-File (an OWL file, to
> be precise). Therefor I need to have a reference to an
> entity in the value of an Attribute:
> <owl:Class rdf:about="&wn;LexicalConcept">
> At the moment JDom outputter converts the & from the
> entity to &. How can I keep JDom from doing this?
You'll have to subclass XMLOutputter and tweak escapeAttributeEntities.
More information about the jdom-interest