SimpleSi Posted June 9, 2009 Posted June 9, 2009 (edited) 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 exception so I must be missing something "basic" Help (from VB experts or anyone else using a free prog) regards Simon Edited June 9, 2009 by SimpleSi
Guest monkeyx Posted June 9, 2009 Posted June 9, 2009 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
ICTNUT Posted June 9, 2009 Posted June 9, 2009 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
Jamo Posted June 9, 2009 Posted June 9, 2009 XML Developer Center Check the MSDN refs, there is a .NET class for interpreting XML.
SimpleSi Posted June 9, 2009 Author Posted June 9, 2009 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
Jamo Posted June 10, 2009 Posted June 10, 2009 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!!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now