I have XHTML content, and I have to create from this content a PDF file on the fly. I use iText pdf converter.
I tried the simple way, but I always get bad result after calling the XMLWorkerHelper parser.

XHTML:
`<ul>
 <li>First
 <ol>
 <li>Second</li>
 <li>Second</li>
 </ol>
 </li>
 <li>First</li>
 </ul>`

The expected value:
 * First
	1. Second
	2. Second
* First

PDF result:

* First Second Second
* First

In the result there is no nested list. I need a solution for calling the parser, and not creating an iText Document instance.