Rank: Newbie
Joined: 3/15/2017 Posts: 1 Location: United States
|
I have several different complexTypes that extend an abstract class. I then use the abstract type in a structure that should support all of the extensions. In the xml file, I am able to specify which extension I am using with the xsi:type.
When using the code generator, how do I know which extension was read from the .xml file? I have not been able to find a very extensive reference for the code generator to answer questions such as these. Thanks in advance for any help.
Stephen
|
Rank: Advanced Member
Joined: 2/27/2009 Posts: 564
|
The XMLSpy documentation does discuss working with derived types (scroll down to "Working with derived types"), both for reading and writing. If that doesn't help, you should attach an example schema and describe how the method described doesn't get you what you need.
(The link I supplied above is for C#, but you can also read instructions specifically for C++ or Java.)
|