}
public static <T> String parseDoubanObjToXMLStr(T obj) throws IOException {
XmlHttpContent content = new XmlHttpContent(DefaultConfigs.DOUBAN_XML_NAMESPACE, "entry", obj);
ByteArrayOutputStream os = new ByteArrayOutputStream();
content.writeTo(os);
String result = new String(os.toByteArray());
return result;
}
public static void main(String[] args) {