473,486 Members | 1,910 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

I'm wondering if this would be the proper application of XML, XSD and a datagrid

Hi I'm James Newbie

I'm going to use some xml from a previous posters because it's similiar to
mine

<Store>
<Name> My Book Store</Name>
<Phone> 555-555-5555 </Phone>
<Book id="1" >
<Title>Thermodynamics Unleashed</Title>
<Price>56.00</Price>
</Book>
<Book id="2" >
<Title>CAD CAM</Title>
<Price>72.00</Price>
</Book>
<Book id="3" >
<Title>Machine Design</Title>
<Price>56.00</Price>
</Book>
</Store>
I was thinking of this instead

<Store>
<Name> My Book Store</Name>
<Phone> 555-555-5555 </Phone>
<Books>
<Book id="1" >
<Title>Thermodynamics Unleashed</Title>
<Price>56.00</Price>
</Book>
<Book id="2" >
<Title>CAD CAM</Title>
<Price>72.00</Price>
</Book>
<Book id="3" >
<Title>Machine Design</Title>
<Price>56.00</Price>
</Book>
</Books>
</Store>

Actually I was also thinking of this and the only advantage I can see (which
may not be one) is that when reading from an XMLDocument I can grab the
entire Books node and do what I need to.

I'm starting to read about reading XML into a dataset using a schema and I'm
not sure how this example can work. When I think about a dataset I'm
thinking a big square shaped structure with rows and columns. Now the above
xml is not square so first that confuses me and I think this is where the
schema comes into play.

Does the schema assist the data set and say for example put the Name and
Phone over here and then take all the books and keep them in a table? If
that is true would I be able to have a form that has two edit boxes, one for
Name and the other for Phone then a separate datagrid which would list all
the books?

Any answers, thoughts, examples or otherwise are highly appreciated!!! I'm
reading about all of this and the examples say this is how you read an xml
file and this is how you read a schema but I'm not seeing some of the
details.

Thanks alot!!!
James


Nov 12 '05 #1
0 951

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

Similar topics

2
5111
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?...
3
1403
by: Michael | last post by:
Hi to all, I have a general question: is it possible, that I can't use DataGrid and the method SetDataBinding for an application running on a pocket pc? I used the same code (comming from...
0
810
by: djozy | last post by:
....which I have on my ASP.NET webform. I press button for inserting data's from database in datagrid, that satisfy condition, lets say hair='black'. In datagrid I can see all data's with that...
3
1155
by: James | last post by:
Hi I'm James Newbie I'm going to use some xml from a previous posters because it's similiar to mine <Store> <Name> My Book Store</Name> <Phone> 555-555-5555 </Phone> <Book id="1" >...
45
2372
by: Brett | last post by:
If I do this without declaring a corresponding field, is it considered bad design? What are the advantages or disadvantages to either method? Notice there is not set. public string URL { get...
1
1158
by: Jim | last post by:
I have a class that inherits from the DataGrid class. I want to know when the datasource of my datagrid has changed, but want to execute a function within my extended datagrid class. For...
3
1170
by: Luis Esteban Valencia | last post by:
Hi, the following code displays a search result in a datagrid and is working without problems. But I think the way I have done is not correct especially databind(). could anyone help me to...
1
1185
by: Cylix | last post by:
I am going to show database table to a datagrid. I try to select the table to a sqlDataReader, but I found it is not straight to show it to the datagrid. It needs to convert the sqldatareader to a...
2
3875
by: Albin | last post by:
Hi, I have a html page where in the table spans for two pages the first page's last row doesn end properly and the 2nd page's first row also isnt proper.The code i use is given below,the no of...
0
7094
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
6964
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
7173
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
6839
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
4863
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
4559
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
3066
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
1378
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 ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.