Convert random XML into a DataSet or ...?

  • Thread starter Thread starter DraguVaso
  • Start date Start date
D

DraguVaso

Hi,

I have a Random XML-file that I want to read into a DataSet. So I don't know
in advance what kind of structure the XML-file will have (exemple underneath
this), but I want to be able to always read it into a DataSet or something
like this, so that I'm able to do easily operations with it in my
application (VB.NET).

anybody got any idea?

Thanks a lot in advance, Pieter

<?xml version="1.0" standalone="yes"?>
<xmldParameters xmlns="http://tempuri.org/xmldParameters.xsd">
<Card>123456789</Card>
<File>123-4567-89</File>
<Actions>
<Action>TRNE</Action>
<Param>FileNr</Param>
<NumberDays>30</NumberDays>
</Actions>
<Actions>
<Action>CONT</Action>
<Param>CardNr</Param>
<NumberDays>50</NumberDays>
</Actions>
<Actions>
<Action>TREV</Action>
<Param>blabla</Param>
<NumberDays>50</NumberDays>
</Actions>
</xmldParameters>
 
Hi Pieter,

The XML file extends the possibilities of the dataset. (Back it is no
problem, but it is of course already a dataset). So in my opinion only from
a xml file that fits in the limits of a dataset can be made as a dataset.

By instance you can have very much nodes on one tree from an XML document,
while the dataset is only
tables
rows
items

But you can see that by opening a XML item in your ide and pasting your XML
file in that (paste as HTML). When you click than on right and create
schema, you can see with what you are starting.

I hope this gives you an idea.

Cor
 
Back
Top