...
TidyMarkup only supports the unmarshal operation as we really don't want to turn well formed HTML into ugly HTML
Java DSL Example
An example where the consumer provides some HTML
Code Block | ||||
---|---|---|---|---|
| ||||
from("file://site/inbox").unmarshal().tidyMarkup().to("file://site/blogs");
|
Spring XML Example
The following example shows how to use TidyMarkup to unmarshal using Spring
Code Block |
---|
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="file://site/inbox"/>
<unmarshal>
<tidyMarkup/>
</unmarshal>
<to uri="file://site/blogs"/>
</route>
</camelContext>
|
Dependencies
To use TidyMarkup in your camel routes you need to add the a dependency on camel-tagsoup which implements this data format.
...