dilettante
MIS
Does anybody know of a simple XML DOM class written in VB6?
I just need something lightweight to use for communication between processing tiers written in VB6. I'd prefer the source to a class module for internal use within my own EXEs rather than a COM DLL.
I'm looking for something that can parse an input stream into a DOM object and serialize a DOM object back into a stream. I also want to have a fairly clean object model that lets me build up a DOM (document) internally from code and work with it there as well.
The markup ("XML") itself doesn't have to be wonderful or standard enough for interoperation but it needs to be text-based. Both ends of a conversation will be using the same class via a stream (TCP, etc.) so XML per se is not a requirement. The data will be hierarchical rather than flat like a typical Recordset or CSV file.
It'd be useful if it mapped markup content into various common VB scalar types as well, i.e. String, Integer, Long, Date, Boolean, Single, Double. The idea being that values stored in the DOM would be stored as native types (even as typed Variants) rather than just strings that I'd need to keep converting and reconverting.
What I'm looking for in a DOM is a linked tree of nodes where each node has a collection of named, typed attributes and a collection of named children nodes (unless the node is a leaf of course). A back-link to a node's parent node would be handy as well.
Anyone seen anything like this? I searched and came up empty except for a few "how to roll your own" articles, so for now I'm headed down that path.
I just need something lightweight to use for communication between processing tiers written in VB6. I'd prefer the source to a class module for internal use within my own EXEs rather than a COM DLL.
I'm looking for something that can parse an input stream into a DOM object and serialize a DOM object back into a stream. I also want to have a fairly clean object model that lets me build up a DOM (document) internally from code and work with it there as well.
The markup ("XML") itself doesn't have to be wonderful or standard enough for interoperation but it needs to be text-based. Both ends of a conversation will be using the same class via a stream (TCP, etc.) so XML per se is not a requirement. The data will be hierarchical rather than flat like a typical Recordset or CSV file.
It'd be useful if it mapped markup content into various common VB scalar types as well, i.e. String, Integer, Long, Date, Boolean, Single, Double. The idea being that values stored in the DOM would be stored as native types (even as typed Variants) rather than just strings that I'd need to keep converting and reconverting.
What I'm looking for in a DOM is a linked tree of nodes where each node has a collection of named, typed attributes and a collection of named children nodes (unless the node is a leaf of course). A back-link to a node's parent node would be handy as well.
Anyone seen anything like this? I searched and came up empty except for a few "how to roll your own" articles, so for now I'm headed down that path.