note 102795 added to function.xmlwriter-start-element-ns

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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:

$w->startElementNS('foo', 'bar', 'http://whatever/foo');
$w->startElementNS('foo', 'baz', null);
$w->endElement();
$w->endElement();
----
Server IP: 69.147.83.197
Probable Submitter: 92.254.50.195
----
Manual Page -- http://www.php.net/manual/en/function.xmlwriter-start-element-ns.php
Edit        -- https://master.php.net/note/edit/102795
Del: integrated  -- https://master.php.net/note/delete/102795/integrated
Del: useless     -- https://master.php.net/note/delete/102795/useless
Del: bad code    -- https://master.php.net/note/delete/102795/bad+code
Del: spam        -- https://master.php.net/note/delete/102795/spam
Del: non-english -- https://master.php.net/note/delete/102795/non-english
Del: in docs     -- https://master.php.net/note/delete/102795/in+docs
Del: other reasons-- https://master.php.net/note/delete/102795
Reject      -- https://master.php.net/note/reject/102795
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.