[xsd-users] Question about ID/IDREF

Vera Mickael vera.mickael at free.fr
Mon Sep 12 07:58:41 EDT 2005


Hi,

I use JAXB I may use the same kind of tool in C++. I have a 
problem with JAXB, I'd like to know if I would have the same 
problem with xsd.

Each time I use ID and IDREF, the method in the generated 
model for the attribute that uses IDREF returns a 
java.lang.Object. This makes the generated model very 
difficult to use.

Does xsd generate the same (a method that returns void *) ? 
Or is there a way to specify the type of the element 
referenced by IDREF, by annotations for example ?

Mickaël



More information about the xsd-users mailing list