2.0 学习文档http://onewayonelife.iteye.com/blog/1084672
com,noelios.restlet.jar(OK)
commons-lang-2,4.jar
junit.jar
Representation//Current or intended state of a resource
result = null;
DomRepresentation//XML representation based on a DOM document
xmlRep;
try {
xmlRep = new DomRepresentation(MediaType.APPLICATION_XML);
Document//Document 接口表示整个 HTML 或 XML 文档。
xmlDoc = xmlRep.getDocument();//Returns the wrapped DOM document.
Element//Element 接口表示 HTML 或 XML 文档中的一个元素。
projectSummaryListElement = xmlDoc.createElement("projectSummaryList");//创建指定类型的元素。
xmlDoc.appendChild(projectSummaryListElement);//创建指定类型的元素。
result = xmlRep;
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return result;
http://www.restlet.org/documentation/1.1/firstResource#conclusion