473,473 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

xml xsd filling question

NS
Hello,
I have a XSD that looks like this:

<xs:schema id="FlowInfo" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:element name="FlowInfoRoot">
<xs:complexType>
<xs:sequence>
<xs:element name="FlowInfoData">
<xs:complexType>
<xs:sequence>
<xs:element name="flowState" type="xs:string" minOccurs="0" />
<xs:element name="traceRoot">
<xs:complexType>
<xs:sequence>
<xs:element name="trace">
<xs:complexType>
<xs:sequence>
<xs:element name="traceComment" type="xs:string" minOccurs="0"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
If I want to fill this, I use the following c# code:
dsFlowInfo.FlowInfoData.Rows.Add(dsFlowInfo.FlowIn foData.NewFlowInfoDataRow());
dsFlowInfo.FlowInfoData[0].flowState = flowstate;

This works without any problem.
However,
If I want to fill multiple "trace" rows, how do I do that ?
I want to add a row of type "trace" to "traceRoot"

dsFlowInfo.FlowInfoData.Rows.Add(dsFlowInfo.FlowIn foData.NewFlowInfoDataRow());
dsFlowInfo.traceRoot.Rows.Add(dsFlowInfo.traceRoot .NewtraceRootDataRow());
dsFlowInfo.trace.Rows.Add(dsFlowInfo.trace.Newtrac eDataRow());

//filling of the elements is not included

This results in that <traceRoot /is empty and that <traceis filled
correctly but is placed on the FlowInfoData level. What must I do to create
a new row of type "trace" on the level of "traceRoot" ?

Regards,
Nicolas
Nov 4 '06 #1
0 1002

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

Similar topics

6
by: Andrey | last post by:
What does the standard say about zero-initializing of static structures/classes, specifically: is it guaranteed by the standard that the alignment fillers between the members will also be...
2
by: hennakapoor | last post by:
How do the form filling software determine which text field gets what data i.e. a typical form filling software will ask the user to enter the username / address / password etc. Whenever it goes to...
2
by: ramesh | last post by:
hi, I am using Com+ in my application. It will have InsertRecords,selectRecords,updateRecords function. In the Web Form i have Drop-down list. I want to select records from SQL and add it to this...
18
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra...
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
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
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
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
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 ...

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.