PHP » PYTHON |
login |
register |
about
|
PYTHON simplexml_load_file
is this article helpful?
|
Python replacement for PHP's simplexml_load_file
[
edit
| history
]
<?php
echo 'salam'; ?> simplexml_load_file(PHP 5) simplexml_load_file — Interprets an XML file into an object Description
object simplexml_load_file
( string $filename
[, string $class_name= "SimpleXMLElement"
[, int $options= 0
[, string $ns
[, bool $is_prefix= false
]]]] )
Convert the well-formed XML document in the given file to an object. Parameters
Return ValuesReturns an object of class SimpleXMLElement with properties containing the data held within the XML document. On errors, it will return FALSE. Examples
Example #1 Interpret an XML document
<?php This script will display, on success: SimpleXMLElement Object ( [title] => Example Title ... ) At this point, you can go about using $xml->title and any other elements.
|
more
Recently updated
more
Most requested
more
Last requests
|