Smook Java to Xml Parser删除包名称

时间:2013-01-28 10:41:18

标签: java xml smooks

如何从Java XML Smook解析器的XML输出中删除包名称?

示例代码:

Smooks smooks = new Smooks();
ExecutionContext executionContext = smooks.createExecutionContext();
StringWriter writer = new StringWriter();
smooks.filterSource(executionContext,
    new JavaSource(inputJavaObject),
    new StreamResult(writer));
System.out.println(writer.toString());

0 个答案:

没有答案