users@jaxb.java.net

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

From: VanIngen, Erik (FIPS) <"VanIngen,>
Date: Thu, 24 Feb 2011 13:25:47 +0100

You can find mine here:
https://opensdmx.svn.sourceforge.net/svnroot/opensdmx/trunk/opensdmx-domain-20/src/main/xjb/

I actually do not remember from where I have copied this one...

From: Andy Davidson [mailto:andy_davidson_at_apple.com]
Sent: 31 January 2011 22:58
To: Wolfgang Laun
Cc: users_at_jaxb.java.net
Subject: Re: how to I set up my xjb file so that my editor will validate?

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<mailto: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>