posted 11 years ago
Hi,
My Dom parser is picking up only the first tag, in this case <gram>. Can someone tell me why <carat> is not included?
Code and console output below.
Thanks,
Lou
XML file MKSFactors2.xml
DomParser.java
Console Output
Starting MeasurementList
DomParser.parseXmlFile()
dom=[#document: null]
parseDocument()
getMeasurement(Element element)
Measurement Added
Number of Measurements = 1.
Measurement label=Weight, type=Metric, name=Gram, toMKS=1.0, fromMKS=1.0