I need write a Java program that will generate a XML with mixed content. It should more or less like this:
<foo><bar><a></a>Some text<b></b></bar></foo>
I would like to use Jackson XML Mapper to serialize Java objects to XML but I don't know how to build an object equivalent to above XML.