I have just started dabbling in XML (about an hour ago in fact!) just a couple of questions to get me started...
1. How easy is XML to use with VB? (Could you give a simple example?)
2. Is it a viable alternative to databases (for small projects I mean (perhaps < 1000 records))?
I've just been playing around with tags and the tree structure layout (I only have XML version 1 that comes with IE5). How do I upgrade to the latest version (v4.0?), will I need to upgrade IE?
1) The Load button reads an XML file in and sticks the Account Numbers in a ListBox. It checks the XML is Kosher with ParseError and that the file has a 'Purchases' top tag. It checks that each AccNo only gets added to the list box once.
2) The Show button dumps the XML into debug
3) The Show Purchases button checks the ListBox for a selected AccNo, then puts all transactions for that AccNo into another ListBox.
4) The Add Transaction button adds a transaction using the AccNo and Amount from 2 TextBoxes, and also adds the system date and increments the transaction serial number.
I've put some comments in, and if you step thru' the code it should make sense. I'm not sure I've done it the easiest way... but for what it's worth, here it is! Your mileage may vary.
Last edited by Jim Brown; Mar 25th, 2002 at 05:21 AM.
MSDN Library is all on the web anyway, so if you want to get the latest articles do your searches at MSDN.Microsoft.com
I have an article on my web site which helps explain the use of XML from VB....
Hope this helps!
Jerry Grant................tnarG yrreJ Website: <JG-Design></.net> Email: [email protected] Working towards a bug free world......
(Not a Microsoft employee)