dev --- 3.8.0.A版本, openProject引用 ;
formao-live --- 3.7.0.B 版本, formallProject引用
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package me.chanjar.weixin.util.xml;
-
- import javax.xml.bind.annotation.adapters.XmlAdapter;
-
- /**
- *
- * http://stackoverflow.com/questions/14193944/jaxb-marshalling-unmarshalling-with-cdata
- *
- * @author chanjarster
- *
- */
- public class AdapterCDATA extends XmlAdapter<String, String> {
-
- @Override
- public String marshal(String arg0) throws Exception {
- return "<![CDATA[" + arg0 + "]]>";
- }
-
- @Override
- public String unmarshal(String arg0) throws Exception {
- return arg0;
- }
-
- }
|