多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
SimpleXML 扩展提供了一个非常简单和易于使用的工具集,能将 XML 转换成一个带有一般属性选择器和数组迭代器的对象。 此扩展默认为启用 * [SimpleXMLElement](https://www.php.net/manual/en/class.simplexmlelement.php)— SimpleXMLElement类 * [SimpleXMLElement :: \_\_ construct](https://www.php.net/manual/en/simplexmlelement.construct.php)—创建一个新的SimpleXMLElement对象 * [SimpleXMLElement :: addAttribute](https://www.php.net/manual/en/simplexmlelement.addattribute.php)—将属性添加到SimpleXML元素 * [SimpleXMLElement :: addChild](https://www.php.net/manual/en/simplexmlelement.addchild.php)—将子元素添加到XML节点 * [SimpleXMLElement :: asXML](https://www.php.net/manual/en/simplexmlelement.asxml.php)—返回基于SimpleXML元素的格式正确的XML字符串 * [SimpleXMLElement :: attributes](https://www.php.net/manual/en/simplexmlelement.attributes.php)—标识元素的属性 * [SimpleXMLElement :: children](https://www.php.net/manual/en/simplexmlelement.children.php)—查找给定节点的子代 * [SimpleXMLElement :: count](https://www.php.net/manual/en/simplexmlelement.count.php)—计算元素的子代 * [SimpleXMLElement :: getDocNamespaces](https://www.php.net/manual/en/simplexmlelement.getdocnamespaces.php)—返回在文档中声明的名称空间 * [SimpleXMLElement :: getName](https://www.php.net/manual/en/simplexmlelement.getname.php)—获取XML元素的名称 * [SimpleXMLElement :: getNamespaces](https://www.php.net/manual/en/simplexmlelement.getnamespaces.php)—返回文档中使用的名称空间 * [SimpleXMLElement :: registerXPathNamespace](https://www.php.net/manual/en/simplexmlelement.registerxpathnamespace.php)—为下一个XPath查询创建一个前缀/ ns上下文 * [SimpleXMLElement :: saveXML](https://www.php.net/manual/en/simplexmlelement.savexml.php)— SimpleXMLElement :: asXML的别名 * [SimpleXMLElement :: \_\_ toString](https://www.php.net/manual/en/simplexmlelement.tostring.php)—返回字符串内容 * [SimpleXMLElement :: xpath](https://www.php.net/manual/en/simplexmlelement.xpath.php)—对XML数据运行XPath查询 * [SimpleXMLIterator](https://www.php.net/manual/en/class.simplexmliterator.php)— SimpleXMLIterator类 * [SimpleXMLIterator :: current](https://www.php.net/manual/en/simplexmliterator.current.php)—返回当前元素 * [SimpleXMLIterator :: getChildren](https://www.php.net/manual/en/simplexmliterator.getchildren.php)—返回当前元素的子元素 * [SimpleXMLIterator :: hasChildren](https://www.php.net/manual/en/simplexmliterator.haschildren.php)—检查当前元素是否具有子元素 * [SimpleXMLIterator :: key](https://www.php.net/manual/en/simplexmliterator.key.php)—返回当前密钥 * [SimpleXMLIterator :: next-](https://www.php.net/manual/en/simplexmliterator.next.php)移至下一个元素 * [SimpleXMLIterator :: rewind](https://www.php.net/manual/en/simplexmliterator.rewind.php)—倒退到第一个元素 * [SimpleXMLIterator :: valid](https://www.php.net/manual/en/simplexmliterator.valid.php)—检查当前元素是否有效 * [SimpleXML函数](https://www.php.net/manual/en/ref.simplexml.php) * [simplexml\_import\_dom](https://www.php.net/manual/en/function.simplexml-import-dom.php)—从DOM节点获取SimpleXMLElement对象 * [simplexml\_load\_file](https://www.php.net/manual/en/function.simplexml-load-file.php)—将XML文件解释为对象 * [simplexml\_load\_string](https://www.php.net/manual/en/function.simplexml-load-string.php)—将XML字符串解释为对象