simple xml add namespaced child

The namespace is the third parameter to addChild()

$item->addChild('id', 'myid', 'http://base.google.com/ns/1.0');

See the documentation for more information.

Leave a Comment