int base =Integer.parseInt(baseValue.getText().trim());
((ASTFunction.ASTLog)curr).addChildNode(ASTNumber.createNumber(base));
}
else if (isFunction(mathml)){
ASTFunctionType type = ASTFunction.getFunctionTypeForName(mathml.getName());
ASTNode toAdd=null;
if (type.equals(ASTFunctionType.LOG )) {
List<Element> siblings = ((Element)mathml.getParent()).getChildren();
for (Element siblin: siblings) {
if(siblin.getName().equals("logbase")){
Element baseValue=(Element)siblin.getChildren().get(0);
int base =Integer.parseInt(baseValue.getText().trim());
toAdd = ASTFunction.createASTLog(base);
}
}
}else if (type.equals(ASTFunctionType.ROOT )) {
List<Element> siblings = ((Element)mathml.getParent()).getChildren();
for (Element siblin: siblings) {
if(siblin.getName().equals("degree")){
Element baseValue=(Element)siblin.getChildren().get(0);
int degree =Integer.parseInt(baseValue.getText().trim());