473,796 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML-Schema: Is there a way to make different type elements(each type has more than one Element) present in random order?

There were some different type elements. each of the type has arbitary
amount of Elements, and all those Elements is in ramdon order, How Can I
write the Schema file?
Jan 5 '07 #1
1 1396
I found a way: use <groupas following:

<xs:complexTy pe name="testType" >
<xs:choice>
<xs:group ref="testGroup" maxOccurs="unbo unded" minOccurs="0" />
</xs:choice>
</xs:complexType>
<xs:group name="testGroup ">
<xs:choice>
<xs:element name="element1" />
<xs:element name="element2" />
</xs:choice>
</xs:group>

--

"Aray" <1@2.3дÈëÏûÏ ¢ news:en******** **@news.cn99.co m...
There were some different type elements. each of the type has arbitary
amount of Elements, and all those Elements is in ramdon order, How Can I
write the Schema file?

Jan 5 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1620
by: frankabel | last post by:
Hi all! I have the following xml file: " <items> <item>hi</item> <item>hello</item> </items> " and need to read all the content between <items> and </items> tags and saved in a string, in this case:
2
5143
by: Anita C | last post by:
Hi, How do I associate or map a specific column in a datatable to a particular element present in an xml document - to read into a datatable as well as write from the datatable to the xml element? Also, how can I associate all the attributes and their values of a particular element to the Name & Value columns of a datatable - to read into a datatable as well as write from the datatable to the xml element? Any help will be greatly...
4
20505
by: Krishna Tulasi via .NET 247 | last post by:
Hi, I am having trouble with creation of XML programmatically using .NET. Specifically Im trying to create an element which looks like below and insert into an existing xml doc: <Worksheet ss:Name="TKCSheet1"> </Worksheet> The existing xml doc is: <?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?>
5
1438
by: mavis | last post by:
the reference of the content of XML element In XSD, how can I specify the content of an element refers to the content of another element in an xml file? Thanks a lot!
2
2264
by: dotnetnoob | last post by:
hi all, i need to copy the content of a xml document and use it as xml element and insert into another xml document. Can someone tell me how? thank you
3
1699
by: =?Utf-8?B?RmlsaXBwbyBCZXR0aW5hZ2xpbw==?= | last post by:
I have got to create an XML file using XMLDocument() like this: <?xml version="1.0" encoding="UTF-8" ?> - <xml xmlns:xi="http://www.dpr.co.uk/mplcvalidationtables/"> - <xi:table ValidationTable="3" Heading="A/C Control Status" Description="Description"> <item Code="AA" CodeDescription="Arrears Arrangement" /> <item Code="AD" CodeDescription="Arrears Arrangement Defaulted" /> <item Code="D" CodeDescription="Deceased" /> </ xi:table>
1
11291
by: BillGatesFan | last post by:
Does anyone have any code to get Attributes of an XML Element Using XPATH. I have been trying all day and cannot get this to work. I have been using XPathNavigator, XPathDocument and the XPathNodeIterator trying to get the url attribute of the following XML: <?xml version='1.0' encoding='utf-8' ?> <Message> <Internet> <site url='http://www.yahoo.com' /> </Internet>
4
4819
chathura86
by: chathura86 | last post by:
hi, i want to update a xml element.i used the following code System.Xml.XmlDocument xmlDoc = new System.Xml.XmlDocument(); System.Xml.XmlNode xmlUpdateNode; xmlDoc.Load("XML//App_Var_Data.xml"); xmlUpdateNode = xmlDoc.SelectSingleNode("NAME"); xmlUpdateNode.InnerText = "chathura"; xmlDoc.Save("XML//App_Var_Data.xml");
2
5702
by: daydreaming | last post by:
Hi all, I would like to know that is it possible to move xml element up or down in element tree. The input xml. <ROOT> <A1>A</A1> <B1>B</B1> <C1>C</C1>
0
692
by: Question123 | last post by:
Hi I am trying to delete filtered Xml element from xml file with date following is the code but its not woking. Plz help me. XmlDocument doc = new XmlDocument(); doc.Load(filename); XmlNodeList nodeList;
0
9683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5576
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.