in apache-whisker-xml/src/main/java/org/apache/creadur/whisker/fromxml/JDomBuilder.java [481:496]
public Map<String, String> mapNotices(Document document) {
final Map<String, String> results = new HashMap<String, String>();
final Element noticesElement = document.getRootElement().getChild(
"notices");
if (noticesElement != null) {
@SuppressWarnings("unchecked")
final List<Element> children = (List<Element>) noticesElement
.getChildren();
for (final Element element : children) {
results.put(element.getAttributeValue("id"),
element.getTextTrim());
}
}
return Collections.unmodifiableMap(results);
}