By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,422 Members | 1,270 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,422 IT Pros & Developers. It's quick & easy.

XSD choice element sequence

P: 1
I have this schema while teh following sequence

<complexType name="SetOfTasks" mixed="true">
<choice minOccurs="1" maxOccurs="unbounded">
<element minOccurs="0" ref="tns:task1" />
<element minOccurs="0" ref="tns:task2" />
<element minOccurs="0" ref="tns:task3" />
<element minOccurs="0" ref="tns:task4" />
<element minOccurs="0" ref="tns:task5" />
<element minOccurs="0" ref="tns:task6" />
<element minOccurs="0" ref="tns:task7" />
<element minOccurs="0" ref="tns:load_inputs" />
<element minOccurs="0" ref="tns:task8" />
<element minOccurs="0" ref="tns:task9" />

where the element input is describe in the following way

<element name="load_inputs" type="tns:LoadInputsType">
A parallel loading of 2 or more inputs.

<complexType name="LoadInputsType">
<element minOccurs="1" maxOccurs="unbounded" ref="tns:load">
Copies input data into specified EBS component.

When i applie the xds.exe genarete the respective serialize class , but when execute the deserialize method the elements load_inputs not are readed or not loaded fo r th respective object

public class LoadType {

/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute(Dat aType="IDREF")]
public string inputID;

/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespac e="")]
public class SetOfTasks {

[System.Xml.Serialization.XmlElementAttribute("exec _sql", typeof(SQLType))]


public object[] Items;

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Item sElementName")]
public ItemsChoiceType[] ItemsElementName;


[System.Xml.Serialization.XmlElementAttribute("load ")]
public LoadType[] load;

Can any one help me

Sep 8 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.