[xsd-users] ID/IDREF problem
Boris Kolpackov
boris at codesynthesis.com
Mon Mar 10 02:13:38 EDT 2014
Hi Mathew,
Mathew Benson <mathew.benson at gmail.com> writes:
> What am I doing wrong?
If the schema validates correctly, then that means you have a
valid ID-IDREF link. The problem is most likely a copy of the
object model fragment that you are making while getting to the
IDREF element. If you make a copy of the object model fragment,
it becomes independant of the whole model and does not contain
the ID element. Make sure you are using references when accessing
the data. If not sure, show us the code that you have from parsing
the object model to where you dereference IDREF.
Boris
More information about the xsd-users
mailing list