473,320 Members | 1,732 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,320 software developers and data experts.

Typed DataSets and XML Schema

I have an XML Schema that's similar to the abbreviated version below; my
problem is that both the XML designer in VS 2002 and xsd.exe apparently
ignore the heirarchy that the Schema defines. In the XML dataview I get
every Node in the document listed as a top level element even tho they are
nested inside other elements. XSD.exe generates a Typed DataSet with a
similar problem. Anybody spot the error here? Is the problem my design or
the IDE?

<xs:element name="Catalog">
<xs:complexType>
<xs:sequence>
<xs:element name="Node" type="NodeType" minOccurs="0"
maxOccurs="unbounded" codegen:typedName="Node" codegen:typedPlural="Nodes"
/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- A NodeType is a set of Links and Nodes that have a common
characteristic such as subject matter -->
<xs:complexType name="NodeType">
<xs:sequence>
<xs:element name="Name" type="xs:string" codegen:typedName="Name" />
<xs:element name="Node" type="NodeType" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
This Schema generates an XML file something like this:

<Catalog xmlns="http://tempuri.org/CatalogSchema.xsd">
<Node>
<Name>Astronomy</Name>
<Node>
<Name>Planets</Name>
<Node>
<Name>Mars</Name>
<Node>
<Name>History</Name>
</Node>
<Node>
<Name>Geology</Name>
</Node>
</Node>
</Node>
<Node>
<Name>Galaxies</Name>
</Node>
</Node>
<Node>
<Name>Science</Name>
<Node>
<Name>NanoTech</Name>
</Node>
<Node>
<Name>BioTech</Name>
</Node>
</Node>
</Catalog>

Nov 16 '05 #1
0 1152

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

Similar topics

0
by: Natehop | last post by:
I've been attempting to design an n-tiered framework leveraging .NET's strongly typed Dataset. My Framework will serve as the foundation to several client apps from Windows applications to web...
0
by: Jeremy Summers | last post by:
Has anyone run into problems creating typed datasets from complex schemas? I am attempting to create a Typed Dataset in Visual Studio .Net from a .xsd schema file for a industry standard web...
1
by: Big D | last post by:
I am having trouble understanding strongly typed datasets and XML files. I have the following schema: <xs:schema id="Pages" targetNamespace="http://asdf.org/EOBEPages.xsd"...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
4
by: Ben | last post by:
So, at my place of employment, we use a national standard to transmit data between certain applications. This standard consists of a fixed width, flat file 4500-some-odd chars wide that contain...
2
by: amit | last post by:
I am having a play with typed datasets in ASP.Net 2.0 I am using the builder to create my data layer. I have the following tables.
3
by: pratham | last post by:
If i understand correct? is strong typed DataSet is ORM implementation by Microsoft? Expecting comments .. please Praveen
3
by: Mike | last post by:
Hi, I'm delevloping a webservice that returns typed datasets with visual studio 2005. The problem is, that the typed data set in the client app is not the same as in the webservice. If I change...
21
by: Peter Bradley | last post by:
Hi all, This post is sort of tangentially related to my earlier posts on configuration files for DLLs. Does anyone know how to create typed DataSets using VS2005's new DataSet designer, but...
0
by: DC | last post by:
Hi, I am about (to be forced) to implement a number of webcontrols that display data from various xml sources. The data is to be loaded on the fly, some data is to be cached. The data will...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.