use of com.dexels.navajo.document.nanoimpl.CaseSensitiveXMLElement in project navajo by Dexels.
the class GeoPolygonGroup method createPlaceMark.
@Override
public XMLElement createPlaceMark() {
XMLElement c = new CaseSensitiveXMLElement("Placemark");
c.addTagKeyValue("name", myName);
c.addChild(createElement());
return c;
}
use of com.dexels.navajo.document.nanoimpl.CaseSensitiveXMLElement in project navajo by Dexels.
the class XMLMap method parseString.
private void parseString(String s) throws UserException {
XMLElement xe = new CaseSensitiveXMLElement(true);
try {
xe.parseFromReader(new StringReader(s));
} catch (IOException ex) {
throw new UserException("Error parsing:", ex);
}
this.name = xe.getName();
parseXML(xe);
}
use of com.dexels.navajo.document.nanoimpl.CaseSensitiveXMLElement in project navajo by Dexels.
the class BaseContextImpl method getArticleArguments.
private Map<String, String> getArticleArguments(File file) {
FileReader fr = null;
Map<String, String> result = new HashMap<String, String>();
try {
fr = new FileReader(file);
XMLElement x = new CaseSensitiveXMLElement();
x.parseFromReader(fr);
final Iterator<String> enumerateAttributeNames = x.enumerateAttributeNames();
while (enumerateAttributeNames.hasNext()) {
String attr = enumerateAttributeNames.next();
result.put(attr, x.getStringAttribute(attr));
}
} catch (IOException e) {
logger.error("Problem parsing article: ", e);
} finally {
if (fr != null) {
try {
fr.close();
} catch (IOException e) {
}
}
}
return result;
}
Aggregations