users@jaxb.java.net

Re: how to I set up my xjb file so that my editor will validate?

From: Andy Davidson <andy_davidson_at_apple.com>
Date: Mon, 31 Jan 2011 13:57:52 -0800

thanks Wolfgang

I think I must have a different problem. I had http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd in the schemalocation of my original post. My editor still allowed me to add <foo>hello world</foo>

do you know where the xsd for http://java.sun.com/xml/ns/jaxb/xjc is ?

thanks

Andy


On Jan 31, 2011, at 1:22 PM, Wolfgang Laun wrote:

> Do you mean where is an XML schema for the external binding file?
> That is at http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
> -W
>
> On 31 January 2011 21:31, Andy Davidson <andy_davidson_at_apple.com> wrote:
> > Hi
> > I am in the process of moving my xjc extensions out of my xsd files. I use
> > eclipse as my xml editor. Any idea how I set up my xjb file so that the
> > editor will catch errors?
> > thanks
> > Andy
> > <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> > <jaxb:bindings version="2.0"
> > xmlns:jaxb="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"
> > xs:schemaLocation="http://www.w3.org/2001/XMLSchema
> > http://www.w3.org/2001/xml.xsd
> > http://java.sun.com/xml/ns/jaxb
> > http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd
> > http://java.sun.com/xml/ns/jaxb/xjc http://java.sun.com/xml/ns/jaxb/xjc"
> > jaxb:extensionBindingPrefixes="xjc">
> > <jaxb:globalBindings>
> > <xjc:simple />
> > <xjc:serializable uid="-1" />
> > <jaxb:javaType name="java.util.Calendar" xmlType="xs:dateTime"
> > parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
> > printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
> > </jaxb:globalBindings>
> > <foo>how do I set up this file so that my editor will validate</foo>
> > </jaxb:bindings>
>