I always suspect that getFirstChild() returns some formatting crlf or spaces, and not the Node you are expecting.
Joined: Nov 11, 2003
Sorry I didn't post all the classes.
All files follow my signature.
MeasurementList is the main class.
MKSFactors2.xml is a small file for testing and development. I have a much larger file for production after I get the smaller one working.
Joined: Mar 22, 2005
After a quick look at the code, I don't see how it could be adding more measurements to the list than a single one. In the parseDocument method it adds one measurement for each "weights" tag - of which there is only one. I think you need to iterate through all the children of the weights node, and add them as appropriate.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com