I'm currently using the HTMLEditorKit to let a user construct a chunk of html. From there I transform it to XML and then I have a server that makes pdf:s out of these. Now I would like a way to construct the XML right in the editor. Like a editor where you can make bold, change colors etc but the underlying model will be XML. How can I get started with this?