note 104032 added to domelement.setattributens

From: Date: Wed, 18 May 2011 14:39:45 +0000
Subject: note 104032 added to domelement.setattributens
Groups: php.notes 
Request: Send a blank email to php-notes+get-179849@lists.php.net to get a copy of this message
To add new brand xml namespace use: <?php $element->setAttributeNS( 'http://www.w3.org/2000/xmlns/', // xmlns namespace URI 'xmlns:mynamespace', 'example.com/mynamespace' ); ?> 'http://www.w3.org/2000/xmlns/' URI is important to be able to add new namespaces !!! Later you can use your namespace like: <?php $element->setAttributeNS( 'example.com/mynamespace', 'mynamespace:something', 'value' ); ?> ---- Server IP: 69.147.83.197 Probable Submitter: 92.86.140.143 ---- Manual Page -- http://www.php.net/manual/en/domelement.setattributens.php Edit -- https://master.php.net/note/edit/104032 Del: integrated -- https://master.php.net/note/delete/104032/integrated Del: useless -- https://master.php.net/note/delete/104032/useless Del: bad code -- https://master.php.net/note/delete/104032/bad+code Del: spam -- https://master.php.net/note/delete/104032/spam Del: non-english -- https://master.php.net/note/delete/104032/non-english Del: in docs -- https://master.php.net/note/delete/104032/in+docs Del: other reasons-- https://master.php.net/note/delete/104032 Reject -- https://master.php.net/note/reject/104032 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179849) next »