two ways of adding elemnts.
For now the most promising is the jdom version