simpleXML addChild with HTM tags

Hi all
How to addChild to simpleXML node if it has html entities?

I did try

myXML->addChild('form','<textfield>Hello World</textfield>');

it doesn’t work