[xsd-users] Non intrusive data structures
Barrie Kovish
barrie.kovish at singularsoftware.com
Sat Mar 27 22:14:14 EDT 2010
I'm using the XSD tree mapping. I'd like to be able to move elements around the XML document without changing the address of the elements. For example suppose I have
<Dealer id="A">
<Car id="1">
<Color>
Red
<Color>
</Car>
<Car id="2">
<Color>
Blue
<Color>
</Car>
</Dealer>
<Dealer id="B" >
<Car id="3">
<Color>
Red
<Color>
</Car>
<Car id="4">
<Color>
Blue
<Color>
</Car>
</Dealer>
In code I want to keep a list of pointers to all Red cars. But if I move car id 1 from dealer A to dealer B the address of the XSD data structure will change. Is there a way to generate XSD classes which save the Car elements as pointers?
Thanks,
Barrie
More information about the xsd-users
mailing list