# simpleXML addChild with HTM tags

**URL:** <https://forum.kirupa.com/t/simplexml-addchild-with-htm-tags/307705>\
**Category:** programming\
**Created:** [April 8, 2010, 7:12pm UTC](https://forum.kirupa.com/t/simplexml-addchild-with-htm-tags/307705 "2010-04-08T19:12:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LOLFlash](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@LOLFlash](https://forum.kirupa.com/u/LOLFlash)\
**Post date:** [April 8, 2010, 7:12pm UTC](https://forum.kirupa.com/t/simplexml-addchild-with-htm-tags/307705/1 "2010-04-08T19:12:43Z")

</div>

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

I did try

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

```

it doesn’t work
