note 98946 added to simplexmlelement.construct

From: Date: Fri, 16 Jul 2010 21:26:48 +0000
Subject: note 98946 added to simplexmlelement.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-170928@lists.php.net to get a copy of this message
@zwilson at gulosolutions dot com The colon ":" is reserved character and denotes a namespaced element in XML. "soap:envelope" is the element "envelope" contained within the "soap" namespace. Thus, SimpleXML is correct in making it's assumption, consequentially "hiding" the soap prefixed elements. The problem with SimpleXML is that it wasn't designed for advanced operations and has minimal support for accessing nodes outside of the global namespace. If you want to access soap:envelope, you need to register the namespace, via SimpleXMLElement::registerXPathNamespace if it is not registered in the root node, and perform the lookup using SimpleXMLElement::xpath. If you want full element lookup support, with namespacing, use DOM or XMLReader. ---- Server IP: 208.69.120.55 Probable Submitter: 174.47.83.122 ---- Manual Page -- http://www.php.net/manual/en/simplexmlelement.construct.php Edit -- https://master.php.net/note/edit/98946 Del: integrated -- https://master.php.net/note/delete/98946/integrated Del: useless -- https://master.php.net/note/delete/98946/useless Del: bad code -- https://master.php.net/note/delete/98946/bad+code Del: spam -- https://master.php.net/note/delete/98946/spam Del: non-english -- https://master.php.net/note/delete/98946/non-english Del: in docs -- https://master.php.net/note/delete/98946/in+docs Del: other reasons-- https://master.php.net/note/delete/98946 Reject -- https://master.php.net/note/reject/98946 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#170928) next »