note 66502 added to ref.simplexml

From: Date: Wed, 24 May 2006 15:50:45 +0000
Subject: note 66502 added to ref.simplexml
Groups: php.notes 
Request: Send a blank email to php-notes+get-111944@lists.php.net to get a copy of this message
I saw this somewhere but cant find it now and dont see it in the docs, anyway there are some new methods in the latest & greatest (I have PHP 5.1.4). /* the method table */ /* each method can have its own parameters and visibility */ static zend_function_entry sxe_functions[] = { SXE_ME(__construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) /* must be called */ SXE_ME(asXML, NULL, ZEND_ACC_PUBLIC) SXE_ME(xpath, NULL, ZEND_ACC_PUBLIC) SXE_ME(registerXPathNamespace, NULL, ZEND_ACC_PUBLIC) SXE_ME(attributes, NULL, ZEND_ACC_PUBLIC) SXE_ME(children, NULL, ZEND_ACC_PUBLIC) SXE_ME(getNamespaces, NULL, ZEND_ACC_PUBLIC) SXE_ME(getDocNamespaces, NULL, ZEND_ACC_PUBLIC) SXE_ME(getName, NULL, ZEND_ACC_PUBLIC) SXE_ME(addChild, NULL, ZEND_ACC_PUBLIC) SXE_ME(addAttribute, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} }; Notably: proto void SimpleXMLElement::addChild(string qName [, string value [,string ns]]) Add Element with optional namespace information proto void SimpleXMLElement::addAttribute(string qName, string value [,string ns]) Add Attribute with optional namespace information Hooray! ---- Server IP: 64.71.164.2 Probable Submitter: 12.31.212.130 ---- X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, UPPERCASE_25_50 autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.simplexml.php Edit -- http://master.php.net/note/edit/66502 Del: integrated -- http://master.php.net/note/delete/66502/integrated Del: useless -- http://master.php.net/note/delete/66502/useless Del: bad code -- http://master.php.net/note/delete/66502/bad+code Del: spam -- http://master.php.net/note/delete/66502/spam Del: non-english -- http://master.php.net/note/delete/66502/non-english Del: in docs -- http://master.php.net/note/delete/66502/in+docs Del: other reasons-- http://master.php.net/note/delete/66502 Reject -- http://master.php.net/note/reject/66502 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#111944) next »