有人有使用 XmlRepresentation 的代码示例吗?我目前正在使用 StringRepresentation,但需要它来返回 XML。它用于 RESTful Web 服务。
导入 org.reSTLet.resource.XmlRepresentation;
最佳答案
XmlRepresentation 是一个抽象类。请考虑改为使用 SaxRepresentation 或 DomRepresentation。
关于java - 如何在 Java EE 中使用 XmlRepresentation?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1495533/