关于转义, 不会用。。。
static java.lang.String escapeAttribute(EscapeStrategy strategy, java.lang.String value)
This will take the three pre-defined entities in XML 1.0 ('<', '>', and '&' - used specifically in XML elements) as well as CR/NL, tabs, and Quote characters which require escaping inside Attribute values and converts their character representation to the appropriate entity reference suitable for XML attribute content.
static java.lang.String escapeText(EscapeStrategy strategy, java.lang.String eol, java.lang.String value)
This will take the three pre-defined entities in XML 1.0 ('<', '>', and '&' - used specifically in XML elements) and convert their character representation to the appropriate entity reference, suitable for XML element content.
Format setEscapeStrategy(EscapeStrategy strategy)
Sets the EscapeStrategy to use for character escaping.
http://www.jdom.org/docs/apidocs/org/jdom2/output/Format.html