public String get(String nodeName) {
Element elt = getElement(nodeName);
//getElement() returns null if there is no such nodeName
if (elt == null) {
throw new XmlException("No nodeName '" + nodeName + "' found, or other exception");
} else {
// We check that it's VerySimpleXml
if (elt.getChildren().size() > 0) {
throw new XmlException("Bad use in RwtJdom.getValue() : The node :" + nodeName + " should not have any child ; it's not an expected Xml structure.");
} else {
return elt.getText();
}
}
}