Instances of this class group all the complex data structures needed to support escape and unescape operations for XML.
In contrast with HTML escape operations, the entity references to be used for XML escape/unescape operations can be defined by the user by manually creating an instance of this class containing all the entities he/she wants to escape.
It is not recommended to use this XML class for HTML escape/unescape operations. Use the methods in {@link org.unbescape.html.HtmlEscape} instead, as HTML escape rules include a series of tweaks not allowed inXML, as well as being less lenient with regard to aspects such as case-sensitivity. Besides, the HTML escape infrastructure is able to apply a series of performance optimizations not possible in XML due to the fact that the number of HTML Character Entity References (Named Character References in HTML5 jargon) is fixed and known in advance.
Objects of this class are thread-safe.
@author Daniel Fernández @since 1.0.0
|
|