Create a new nested branch efficiently with DOM
-
Colleagues, I’m brand new to XML. I’m using VB6 and DOM to write an XML log file. (I have to use VB6, because I’m retrofitting a legacy application.) Each log entry has 3 layers of nesting and about 20 nodes. I want to avoid pain of creating every new entry node-by-node. I’m looking for a way to create a new blank log entry efficiently (in terms of required amount of code). I have some ideas, but how do the big kids do it? -Nick P.S. I know Java and C++, so if you have examples in other languages, please post them; I can translate them to VB6. -- modified at 15:52 Wednesday 21st November, 2007
-
Colleagues, I’m brand new to XML. I’m using VB6 and DOM to write an XML log file. (I have to use VB6, because I’m retrofitting a legacy application.) Each log entry has 3 layers of nesting and about 20 nodes. I want to avoid pain of creating every new entry node-by-node. I’m looking for a way to create a new blank log entry efficiently (in terms of required amount of code). I have some ideas, but how do the big kids do it? -Nick P.S. I know Java and C++, so if you have examples in other languages, please post them; I can translate them to VB6. -- modified at 15:52 Wednesday 21st November, 2007