users@jaxb.java.net

How to add sgml / an xhtml tree without jaxb bindings

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Tue, 17 Jun 2008 11:32:40 +0200

Hi,
        
I just want to create an xml document and add some xhtml elements as
child nodes somewhere (e.g. <p><h3>foo</h3><pre><code>some
code</code></pre></p>). However, I couldn't find bindings for xhtml, and
didn't manage to create them from the xsds.

So I see these possibilities:
1) Write bindings for xhtml manually
2) Find existing bindings for xhtml
3) Manage to add some sgml / xhtml tree without beeing forced to
   create jaxb bindings.

I would prefer 3) or 2)

S.th. like this would be nice:
Elements.el( "p" ).add( Elements.el( "h3" ).value( "foo" ) ).add( Elements.el( "pre" )...

Can anybody help with this?

Thanx && cheers,
Martin