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