Главная | Руководство по MySQL | MySQL Manual | Документация к HTTP серверу Apache | Apache HTTP Server Documentation | downloads | faq

искать  Язык: Английский


The SimpleXML extension provides a very simple and easily usable toolset to convert XML to an object that can be processed with normal property selectors and array iterators.

User Contributed Notes
24-Mar-2009 11:09
SimpleXML has a beautiful simplicity. The following is one example of how it may be used with namespaces. 

Note, I use the XML that made Paul Reinheimer experience hair loss; for that XML see 


= new DOMDocument();                
$dom->loadXML( $response );               

'Ebay Timestamp ',$sxe->Timestamp;  

Running the above code left my own hair uneffected. :)
alvaro at demogracia dot com
30-Sep-2008 08:30
SimpleXML is simple, unless your XML document has namespaces (e.g., tags withs "colons" like <rs:data>). In this case, most code examples in this section will not work at all: namespaces imply that you need to do further processing with functions that are often undocumented.

Look for "namespace" in user notes.

credits | contact