try {
stream = new FileInputStream(aStyleMapFile);
DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();
parse = db.parse(stream);
} catch (FileNotFoundException e) {
throw new UIMARuntimeException(e);
} catch (ParserConfigurationException e) {
throw new UIMARuntimeException(e);
} catch (FactoryConfigurationError e) {
throw new UIMARuntimeException(e);
} catch (SAXException e) {
throw new UIMARuntimeException(e);
} catch (IOException e) {
throw new UIMARuntimeException(e);
}
Node node0 = parse.getDocumentElement();
// Node node1 = getFirstChildByName(parse.getDocumentElement(),
// "styleMap");
// String node1Name = node1.getNodeName();