For the list of all supported Decision Insight downloads and releases, see the Downloads page.


The TidyMarkup (or TagSoup) component is used to parse malformed XML and should only be used in that case. When XML is properly formatted see How to process XML. Learn how to work with the TidyMarkup component.


Create a new library with the following jars (in this order):

Camel version Library jars

See How to retrieve the Camel version of Decision Insight.


Now it's possible to create a route that uses this component. For the example we need to try to parse this XML file:

        <name>name of id1
        <name>name of id2

As you can see there is many missing closing tag. See the TagSoup website in order to see which kind of correction is done by the library.

Here the definition of the route:

<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns:u="" xmlns="">
        <from uri="direct:inject"/>
                <xpath resultType="java.lang.String">/product/id/text()</xpath>
            <to uri="log:tidy-test"/>

This route should log the ids of the products by using the xpath expression.

Related Links