|
-
Apr 5th, 2009, 04:32 PM
#1
Thread Starter
Frenzied Member
[RESOLVED] Parse xml without msxml library
Hi, does anybody have a module or class that replaces the msxml library? I need to read XML files, but in this case I don't want to use extra dependencies (only the vb run-time files).
I've searched around, but can't find a good replacement.
-
Apr 5th, 2009, 08:32 PM
#2
Re: Parse xml without msxml library
-
Apr 5th, 2009, 09:14 PM
#3
Re: Parse xml without msxml library
The only versions you can redistribute intact are 4.0 and 6.0, and the base functionality is pretty much the same from 2.0 onward. Prior to 4.0 XDR schemas were used, afterward it uses XSD schemas. Along the way some XPath changes were made, etc.
You can't distribute msxml*.dll by itself anyway. See Microsoft Core XML Services (MSXML) 6.0 (the 32-bit redist is a 1.5MB MSI package).
For "dummy" XML parsing though you'll probably never notice a difference. Any machine with MDAC 2.5 or later will have a usable version. Target 3.0 for best results on every supported Windows platform (Win2KSP4 is the oldest supported version of Windows).
Here's more:
Using the right version of MSXML in Internet Explorer
MSXML 3.0 is our preferred “fallback” - It is installed on every OS from a fully patched Win2k SP4 installation on up, so it requires “zero-deployment” and is serviced regularly with the OS.
There are no good alternatives because MSXML2 blew them all away years ago. The sample linked above is crap. No SAX support, can't handle text encodings, the list goes on. I gave up on it years ago (it dates to 2000) and wrote my own, and have long abandoned that too.
-
Apr 6th, 2009, 10:39 AM
#4
Thread Starter
Frenzied Member
Re: Parse xml without msxml library
@jggtz
Thanks. I tried that example, but it doesn't parse the XML correctly. It contains quite a few bugs.
@dilettante
Thanks for the information. I'll use MSXML 3.0.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|