I find the name getChildren misleading. When I do an addChild(String), I would expect this to influence the result of a call to getChildren(). It does not. I propose to replace the name by getChildElements(). Alternatively addChild(String) could be renamed addString(String).