This is the input:

```
<div>The price is &lt; 5 &euro;</div>

```

It is a valid HTML but is not a valid XML (because `&euro;` is not declared in DTD). A valid XML would look like:

```
<div>The price is &lt; 5 &#8364;</div>

```

Can you recommend some Java library that can help me to unescape HTML entities and convert them to XML entities?