If you are working with the Collada XML standard, then there may be an easier way to create and read your XML files.
You can generate a set of classes that correspond to elements within the schema. These classes are simple and intuitive, just set the properties on the generated objects, and then ask for the XML.
No messing about with DOM parsers, much less time spent learning the bizarre intricacies of the XSD standard,
If you want to know more then check out
Code can be generated for C#, java, VB6 & C++ (cross platform, ships with Linux & Win32 runtimes).
A sample (including object viewer) can be downloaded from
(Requires the .Net runtimes)