File Handling, XML

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

Dear All VB.NET programmers,

Does anyone of you have a good article reference to learn file handling (text, binary, etc) and XML (creating, reading, etc) in VB.NET.

I heard that XML file may act like database and it can be created using one of ADO.NET component. Is it true ?

Thx Alot ...

MARTIN
-NEWBIE IN VB.NET-
 
The DataSet class is one an example of how you can persist your Data. Check out the ReadXML and WriteXML member functions of the DataSet Class.

HTH

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

Dear All VB.NET programmers,

Does anyone of you have a good article reference to learn file handling (text, binary, etc) and XML (creating, reading, etc) in VB.NET.

I heard that XML file may act like database and it can be created using one of ADO.NET component. Is it true ?

Thx Alot ...

MARTIN
-NEWBIE IN VB.NET-
 
Hi Martin,

i currently dont know any articels but

i have used this cool thing - using XML as a DataStore.

Just to get started this is what you have to do.

Right Click the project and Add New Item. Select DataSet name it and Add it in your project.

You will be given this DataSet1.xsd design view.

Here you can add an element which will act as a table.

You can now use this dataset as any normal dataset.

To really see the XML part, you can try WriteXML and ReadXML methods along with WriteXMlSchema and ReadXMLSchema methods on the dataset.

Infact I think you can even use any 'Database Connected dataSet' to read/write XML data and the Schema to/from file.

I encourage you to look into the xsd in the design view and xml view and the accompanying xml files to see what actually happens.

Hope it helps,

Thank You,
rawCoder
Dear All VB.NET programmers,

Does anyone of you have a good article reference to learn file handling (text, binary, etc) and XML (creating, reading, etc) in VB.NET.

I heard that XML file may act like database and it can be created using one of ADO.NET component. Is it true ?

Thx Alot ...

MARTIN
-NEWBIE IN VB.NET-
 
Back
Top