473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

XSD choice element sequence

1
I have this schema while teh following sequence

<complexType name="SetOfTasks" mixed="true">
<sequence>
<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" />
</choice>
</sequence>
</complexType>

where the element input is describe in the following way


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


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


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="http://www.criticalsoftware.com/TC_schema")]
public class SetOfTasks {


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

....

public object[] Items;

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




...


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




Can any one help me

Thanks
Sep 8 '07 #1
0 1524

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

Similar topics

3
by: Sony Antony | last post by:
Hello: ( Please redirect me to the correct list if this is not where I m supposed to ask this question ) Our application essentially sends xml 'commands' to another system. These commands...
3
by: dgaucher | last post by:
Hi, I want to consume a Web Service that returns a choice, but my C++ client always receives the same returned type. On the other hand, when I am using a Java client, it is working fine (of...
4
by: Dennis Vroegop | last post by:
Hi there! I have the following XSD (Well, this is not the real one, but the concept is the same....) <?xml version="1.0" encoding="UTF-8"?> <xs:schema...
4
by: Sergey Poberezovskiy | last post by:
Hi, As part of my schema I need to ensure that at least one of two fields have values. I defined my schema as follows: .... <xs:choice> <xs:element ref="el1"/> <xs:element ref="el2"/>...
2
by: Sergey Poberezovskiy | last post by:
Hi, If I define my schema as <xs:choice> <xs:sequence> <xs:element ref="el_1" /> <xs:element ref="el_2" /> </xs:sequence> <xs:sequence>
2
by: pawel.pabich | last post by:
Hajo, I know only one way of forcing element to have one or more childes: <xs:element name="saleOrSupplyMethod"> <BR/> <xs:complexType> <xs:choice> <xs:sequence> <xs:element...
7
by: rbarschaw | last post by:
I have the following schema designed: <xs:complexType name="AzzFeature-BoxType" mixed="true"> <xs:choice minOccurs="1" maxOccurs="unbounded"> <xs:element ref="Sub-Head" minOccurs="1"...
1
by: SL33PY | last post by:
Hi, I'm currently busy writing an xsd at one point in time i whish that my xml must look like: <object> <loc> <disk> <drive>c</drive> <path>temp\path</path> <files>*.*</files>...
2
by: puffy | last post by:
Hi, Everyone! I'd need a little help. I understand this is not valid, but is there an (easy) way to make it valid? <xs:complexType name="control_Type"> <xs:sequence> <xs:element name="id"...
1
by: s123 | last post by:
Hi, I am using the sequence tag under the choice tag. the code part of this is : <xs:choice> <xs:sequence> <xs:element name="values" type="ValuesType" minOccurs="0"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.