Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TidyMarkup only supports the unmarshal operation as we really don't want to turn well formed HTML into ugly HTML (smile)

Java DSL Example

An example where the consumer provides some HTML

Code Block
java
java
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.

...