
or any other language producing standalone exe
I want to make a prog to parse a bunch of xml files looking for a field and then change the value of that field.
Im completely stuck at the beginning just trying to use VB 2008 express to just read one simple XML file
Every single example I can find gives me an exceptionso I must be missing something "basic"
Help (from VB experts or anyone else using a free prog)
regards
Simon
Last edited by SimpleSi; 9th June 2009 at 07:54 AM.
Hi,
I have used the following quite a bit
CodeProject: Quick and Dirty Settings Persistence with XML. Free source code and programming help
This is a more complete parsing article.
CodeProject: XMLite: simple XML parser.. Free source code and programming help
Not done much with vb.net, but you could use sharpcode to convert the c# to vb.net
Regards,
Tim
Not sure if you want VB or VB.Net so heres both:
VB.Net:
vbCity/DevCity.NET Forums :: FAQ :: .NET :: VB.NET :: XML
VB:
vbCity/DevCity.NET Forums :: FAQ :: Visual Basic 6 :: VB6 & Web Development :: XML
XML Developer Center
Check the MSDN refs, there is a .NET class for interpreting XML.

Thanks for all the suggestions - I've found my problem!
I was using wordpad to save example xml files (I use it all the time to edit my real xml files) to read back in.
Of course, it defaults to saving as type rtf so the xml files were completely mal-formed
Found this out by just reading them back in one byte at a time
regards
Simon
ah that would do it!! Try looking at Notepad++ for an alternative to that, it will format the files properly and make the code much easier to read!!
There are currently 1 users browsing this thread. (0 members and 1 guests)