note 102795 deleted from function.xmlwriter-start-element-ns by cmb

From: Date: Sun, 20 Sep 2020 14:13:15 +0000
Subject: note 102795 deleted from function.xmlwriter-start-element-ns by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215156@lists.php.net to get a copy of this message
Note Submitter: pike-php at kw dot nl ---- by default, the xmlns: definition is repeated on every element. if you do want the prefix, but dont want the xmlns: declaration repeated, set the namespace to null. dont forget to declare the namespace prefix somewhere higher in your document, though: <?php $w->startElementNS('foo', 'bar', 'http://example.com/foo'); $w->startElementNS('foo', 'baz', null); $w->endElement(); $w->endElement(); ?>

« previous php.notes (#215156) next »