DocumentInfo doc = config.buildDocument("normalizationData.xml");
BitSet isExcluded = new BitSet(128000);
BitSet isCompatibility = new BitSet(128000);
NodeInfo canonicalClassKeys = null;
NodeInfo canonicalClassValues = null;
NodeInfo decompositionKeys = null;
NodeInfo decompositionValues = null;
AxisIterator iter = doc.iterateAxis(Axis.DESCENDANT, NodeKindTest.ELEMENT);
while (true) {
NodeInfo item = (NodeInfo)iter.next();
if (item == null) {
break;
}
if (item.getLocalPart().equals("CanonicalClassKeys")) {
canonicalClassKeys = item;
} else if (item.getLocalPart().equals("CanonicalClassValues")) {
canonicalClassValues = item;
} else if (item.getLocalPart().equals("DecompositionKeys")) {
decompositionKeys = item;
} else if (item.getLocalPart().equals("DecompositionValues")) {
decompositionValues = item;
} else if (item.getLocalPart().equals("ExclusionList")) {
readExclusionList(item.getStringValue(), isExcluded);
} else if (item.getLocalPart().equals("CompatibilityList")) {
readCompatibilityList(item.getStringValue(), isCompatibility);
}
}
Map<Integer, Integer> canonicalClass = new HashMap<Integer, Integer>(400);
readCanonicalClassTable(canonicalClassKeys.getStringValue(), canonicalClassValues.getStringValue(), canonicalClass);