XML::perseXml
(PHP 5)
- Analyzing XML, and it is returned by the array, and outputs it
Description
public XML::perseXml
(
string $file [,
int $print,
int $id,
int $xbrlid ]
)
Parameters
-
$file
-
Each element of the specified XML file is returned by the array.
-
$print
-
When '1' is specified, it displays information about each element of the XML file in a way that's readable by humans.
-
$id
-
When '1' is specified, it reads by using 'function::simplexml_load_string'.
-
$xbrlid
-
When '1' is specified, It corresponds to the XBRL expanding account of EDINET and TDnet. (*XML for PHP ver.0.11 - )
Examples 1
$file = "test.xml";
require_once("/xmlphp/xml/XML.php");
$xml = new XML();
$array = $xml->perseXml($file);
var_dump($array);
Examples 2
$file = "test.xml";
require_once("/xmlphp/xml/XML.php");
$xml = new XML();
$xml->perseXml($file, 1);
XML for PHP - Manual
XML for PHP