xml文档内容:
<?xml version="1.0" encoding="UTF-8"?> <adi xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <objects></objects> <mappings></mappings> <reply> <result>0</result> <description>All action successfully.</description> </reply> </adi>
解析xml内容的php代码实现:
Reply; $CmdResult = $ReplyArr['Result']; $ErrorDescription = (string) $ReplyArr['Description']; var_dump($CmdResult); var_dump($ErrorDescription);
以上就介绍了 解析xml内容-Reply节点的属性2,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。