關(guān)于轉(zhuǎn)義, 不會用。。。
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
2015-07-26
以上真的是在胡說八道!不知道為什么弄不出來,還來混淆視聽!
2015-07-14
Element title = new Element("title");
???CDATA cdata = new CDATA("上海移動互聯(lián)網(wǎng)產(chǎn)業(yè)促進中心正式揭牌 ");
???title.setText(cdata.toString());
???channel.addContent(title);
2015-06-11
好吧,隔壁有了
Element title = new Element("title");
CDATA cdata = new CDATA("上海移動互聯(lián)網(wǎng)產(chǎn)業(yè)促進中心正式揭牌");
title.setContent(cdata);
?JessicaJiang