users@jaxb.java.net

xjc:dom in an .xjb file

From: Nicolas Pujol <nicolaspujol_at_yahoo.com>
Date: Wed, 23 Mar 2005 09:07:44 -0800 (PST)

I tried what Aleksei recommended and it still does not
work here is my example schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:complexType name="t_form" mixed="true">
<xs:sequence>
<xs:any processContents="skip"/>
</xs:sequence>
</xs:complexType>
</xs:schema>

here is my .xjb file
<jxb:bindings version="1.0"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:xs="http://www.w3.org/2001/XMLSchema">

<jxb:bindings schemaLocation="ApprovalProcess.xsd"
node="/xs:schema">

<jxb:bindings
node="//xs:complexType[@name='t_form']//xs:sequence//xs:any">
<xjc:dom/>
</jxb:bindings>

I also tried this

<jxb:bindings
node="//xs:complexType[@name='t_form']//xs:any">
<xjc:dom/>
</jxb:bindings>


</jxb:bindings>
</jxb:bindings>


                
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/