We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose Word Java can convert html to wordML 2003

Please help me!
Aspose Word Java can convert html to wordML 2003

xml = ConvertHtmlToWordML(html);


String html ="<u><i><b>Have a Great Day Ahead</b></i></u>"


String xml ="<w:p>
                <w:u w:val="single" />
                <w:i />
                <w:b />

            <w:t>Have a Great Day Ahead</w:t>

Thanks for your request. There is no direct way to achieve what you need. However, you can insert your HTML string into an empty document and then save this document as Word 2003 XML. After this you will be able to extract WML string from this document.
Please follow the following link to learn more about InsertHtml method:
Here you can find a simple code example how you can save a document:
If you save the document to stream you will be able to do all actions in memory without saving the output document to disk.
Best regards,