Click to See Complete Forum and Search --> : DOM verses VB


Jim Bassett
December 4th, 2000, 05:24 PM
At a company I am working at the discussion came up if there is a performance problem or resource problem using DOM to write a XML document verses using VB Script. One side says if the XML document is simple then just use VB another side says since DOM is a compiled object than it is better to use and should not use any more resources than having VB run inside an object. Has anyone run a test or knows?

Also some feel the VB is simplier to use and would use less code than using DOM...anyone want to comment?
Thanks

vdo
December 14th, 2000, 05:43 AM
You are trying to compare a data model and a programming language, IMHO this makes little sense.
What you can try to compare is writting XML docs using the DOM or just outputing strings to a file.
And then it is a sole matter of taste, however using the DOM is easier but using COM is not the fastest way.
DOM becomes really necessary when reading XML files, not when writting.

HTH