[Israel.pm] Is there a Perl equivalent to the PHP function "simplexml_load_file"?

Oren Maurer meorero at gmail.com
Thu Nov 6 07:41:25 PST 2008


I have seen a PHP code like this

==============================
        $xml = simplexml_load_file($request);

         // items
        $Base = $xml->Items->Item;
==============================

I want to try it in Perl.
Is there an equivalent to the simplexml_load_file() function?


Additional info - In:  http://il.php.net/simplexml_load_file
I see this:

============================
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 [,
int $options [, string $ns [, bool $is_prefix ]]]] )

Convert the well-formed XML document in the given file to an object.

....
[See more on   http://il.php.net/simplexml_load_file    ]

============================

Thanks in advance.

--
________________________________
Oren  Maurer
http://www.meorero.org.il
_______________________________
#  =======================|
#  Please avoid sending me Word |
#   or PowerPoint attachments      |
#  =======================|
# See: http://www.gnu.org/philosophy/no-word-attachments.html



More information about the Perl mailing list