473,506 Members | 16,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Field order if generated XML File is different to used Scheme.

Hi,

There is a big problem using an XSD-Schema in C# to generate an
XML-File (with WriteXML).

The Scheme is defined as
------------------------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="http://tempuri.org/XSDSchema1.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mstns="http://tempuri.org/XSDSchema1.xsd"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
elementFormDefault="qualified" version="1.0"
id="XSDSchema1">
<xs:element name="wko_to_a2b">
<xs:complexType>
<xs:sequence>
<xs:element name="Content">
<xs:complexType>
<xs:sequence>
<xs:element name="Document">
<xs:complexType>
<xs:sequence>
<xs:element name="SST_ID" type="xs:int" />
<xs:element name="DST_ID" type="xs:int" />
<xs:element name="DST_Langbez" type="xs:string" />
<xs:element name="DG_ID" type="xs:int" />
<xs:element name="DocID" type="xs:int" />
<xs:element name="SST_Titel" type="xs:string" />
<xs:element name="SST_UnterTitel" type="xs:string"
minOccurs="0" />
<xs:element name="SST_Beschreibung" type="xs:string"
minOccurs="0" />
<xs:element name="SST_AktivAb" type="xs:string"
minOccurs="0" />
<xs:element name="SST_AktivBis" type="xs:string"
minOccurs="0" />
<xs:element name="SST_BeginnZeit" type="xs:string"
minOccurs="0" />
<xs:element name="SST_EndZeit" type="xs:string"
minOccurs="0" />
<xs:element name="SST_Anmeldes" type="xs:string"
minOccurs="0" />
<xs:element name="SST_Version" type="xs:string"
minOccurs="0" />
<xs:element name="SST_UrlGrafik" type="xs:string"
minOccurs="0" />
<xs:element name="SST_Autor" type="xs:string" minOccurs="0"
/>
<xs:element name="SST_EmailAutor" type="xs:string"
minOccurs="0" />
<xs:element name="SST_PreisMitglied" type="xs:string"
minOccurs="0" />
<xs:element name="SST_PreisNichtMitglied" type="xs:string"
minOccurs="0" />
<xs:element name="SST_WebshopUrl" type="xs:string"
minOccurs="0" />
<xs:element name="SST_FormatUrl" type="xs:string"
minOccurs="0" />
<xs:element name="SST_PortalUrl" type="xs:string"
minOccurs="0" />
<xs:element name="SST_ShopAktiv" type="xs:boolean"
default="false" minOccurs="0" />
<xs:element name="SST_VerOrt" type="xs:string" minOccurs="0"
/>
<xs:element name="SST_VerLand" type="xs:string"
minOccurs="0" />
<xs:element name="SST_CustProp1" type="xs:string"
minOccurs="0" />
<xs:element name="SST_CustProp2" type="xs:string"
minOccurs="0" />
<xs:element name="SST_CustProp3" type="xs:string"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="KatalogElement" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="KW_Katalog" type="xs:string" />
<xs:element name="SKW_ID" type="xs:int" default="0" />
<xs:element name="KAT_ID" type="xs:int" default="0" />
<xs:element name="KatalogWerte" minOccurs="0"
maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="KW_Katalogwert1" type="xs:string"
minOccurs="0" />
<xs:element name="KW_Katalogwert2" type="xs:string"
minOccurs="0" />
<xs:element name="KW_Katalogwert3" type="xs:string"
minOccurs="0" />
<xs:element name="KW_Katalogwert4" type="xs:string"
minOccurs="0" />
<xs:element name="KW_Katalogwert5" type="xs:string"
minOccurs="0" />
<xs:element name="KW_Katalogwert6" type="xs:string"
minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="_CTime" type="xs:dateTime" />
<xs:element name="_ETime" type="xs:dateTime" />
<xs:element name="_Del" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
-----------------------------------------------
It is important that _CTime _ETime and _Del are behind the nested
Objects (like defined in the Scheme). I don't know why writexml puts
them before the nested Objects.
How can I tell writeXML to generate the XML-File as defined in the
Scheme.
Please help

Thanks
Michael
Nov 12 '05 #1
0 1115

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

Similar topics

1
1919
by: Cy | last post by:
I have a form that contains several browse fields for users to upload files. There is also a hidden field that is populated using javascript. This script reads the value of the browse field,...
6
8837
by: James Owens | last post by:
I maintain a small web page for internal company use. People access it by typing "library" in their browser address bar; this defaults to "http://library" which the network admin magically...
16
697
by: Bhushit Joshipura | last post by:
This post contains one question and one proposal. A. May I know why order of evaluation of arguments is not specified in C/C++? I asked a question in comp.lang.c++ for the following...
16
7260
by: !TG | last post by:
I have a table with a date field. All I want to do it get all the records with a date before today. I tried the following: "SELECT * FROM StateLicenses Where (Exp < #07/26/2005#) Order By...
2
2293
by: Daniel Lidström | last post by:
Hi, I would like to know the cleanest way to change the serialization of my Line class from: <Line staStart="2327.02" length="10.00000003390744"> <End>549016.570965 57945.741122</End>...
1
3669
by: John Phelan-Cummings | last post by:
I'm not certain if this made the post. Sorry if it's a repeat: Using a Button to take an autonumber from one form to populate another autonumber field on another form. I have a Mainform "A"...
7
5248
by: Dan Sikorsky | last post by:
How do you iterate thru a dataset to change money fields to a different value? Here's what I have. My dataset is filled directly from a stored procedure. ' Create Instance of Connection and...
2
2121
by: Yeah | last post by:
I have a simple fill-out form with three fields, in this order: Name, E-mail, and Comment. But when I receive the E-mail containing the form data, the fields are listed backwards (Comment, E-mail,...
9
3095
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
0
7218
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,...
0
7103
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
7370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7021
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...
1
5035
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...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
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...

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.