|
PHP5中文手册
simplexml_import_dom(PHP 5) simplexml_import_dom — Get a SimpleXMLElement object from a DOM node. 说明
SimpleXMLElement simplexml_import_dom
( DOMNode $node
[, string $class_name
] )
This function takes a node of a DOM document and makes it into a SimpleXML node. This new object can then be used as a native SimpleXML element. 参数
返回值Returns a SimpleXMLElement or FALSE on failure. 范例
Example#1 Importing DOM
<?php |