users@jaxb.java.net

Re: xjc:dom in an .xjb file

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 05 Apr 2005 15:26:48 -0700

Nicolas Pujol wrote:
> 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>

This worked for me with the -extension option. What's the error message
you get?

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com