SimpleXML fix

test case  http://newsportal.delphi-jedi.org/article.php?id=827&group=jedi.jcl