...
| Table of Contents | ||||
|---|---|---|---|---|
|
SVN - Download - Other Tutorials
Other Relevant Info:
...
| No Format |
|---|
// Instantiate Smooks with the config...
Smooks smooks = new Smooks("smooks-config.xml");
//JavaResult Createresult an= exec context - no profiles....
StandaloneExecutionContext executionContext = smooks.createExecutionContextnew JavaResult();
// Filter the input message to the outputWriter, using the execution contextJavaResult...
DOMResult domResult = new DOMResult();
smooks.filter(new StreamSource(new ByteArrayInputStream(messageIn)), domResult, executionContext);
result);
return (Order) result.getBean("order");
|
Of course, you'd typically cache the Smooks instance.
...