Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
TidyMarkupTidyMarkup is a Data Format that uses the TagSoup to tidy up HTML. It can be used to parse ugly HTML and return it as pretty wellformed HTML. Camel eats our own -dog food- soap TidyMarkup only supports the unmarshal operation as we really don't want to turn well formed HTML into ugly HTML Java DSL ExampleAn example where the consumer provides some HTML from("file://site/inbox").unmarshal().tidyMarkup().to("file://site/blogs"); Spring XML ExampleThe following example shows how to use TidyMarkup to unmarshal using Spring <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> DependenciesTo use TidyMarkup in your camel routes you need to add the a dependency on camel-tagsoup which implements this data format. If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions). <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-tagsoup</artifactId> <version>x.x.x</version> </dependency> |