[jdom-interest] XML Entities in attributes

Per Norrman per.norrman at austers.se
Fri May 13 08:01:54 PDT 2005


Christina B skrev:
> Hi
> 
> 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 &amp;. How can I keep JDom from doing this?
> 

You can't, unless you subclass XMLOutputter#printAttributes.
But I'm sure you don't *need* to use an entity ref.

/pmn


More information about the jdom-interest mailing list