Hi Brad
As part of my current project I did this the other way around - I extracted data from a database and wrote it to an XML file. I got a book on XML (although there are plenty of sources on the web - I just prefer books

) and used some code examples from the web to create a basic XML viewer just to get the hang of the DOM. If you don't have the time or the inclination to do that, example code is certainly worth a look. I guess a web-address would be useful....
This has a few examples that might be worth looking at.
To access an XML file's nodes you create an instance of a DOM Document (I'm currently using ver. 3):
Code:
Private mxmlDoc As DOMDocument30
'* * * * * * * * * * * * * * * * * *
Set mxmlDoc = New DOMDocument30
Use the DOMDocument to open the XML file:
Code:
If mxmlDoc.Load(sFName) Then
'Cycle through nodes
Else
'Log/report error
End If 'XML file opened ok
The DOMDocument object is essentially the root node. You can use its "ChildNodes" collection to iterate through to get the data you want.
Code:
Dim xnChildNode As IXMLDOMNode
'* * * * * * * * * * * * * * * * * *
For Each xnChildNode In mxmlDoc
Select Case xnChildNode.nodeType
Case NODE_ELEMENT
'Code
Case NODE_COMMENT
'Code
Case NODE_TEXT
'Code
Case NODE_PROCESSING_INSTRUCTION
'Code
End Select 'xnChildNode.nodeType
Next xnChildNode
I believe you can also access the nodes directly if you know the node-names ahead of time (which I would imagine you will).
I used user-defined types to store my database data, integrity check it and add/tidy data before creating XML nodes and populating them from the UDTs. I don't see why you can't do a similar thing but in reverse for your application - store the data from the XML nodes, build INSERT queries and then execute them.
I hope this has been of use (even if it has pointed you towards a different solution!).
Let us know how you get on.
Regards
Daren
Must think of a witty signature