Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    XMLParser for PHP 1.1

    Download button

    No screenshots available
    Downloads: 482  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Monte Ohrt | More programs
    GPL / FREE
    September 20th, 2007, 21:35 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    XMLParser for PHP description

    XMLParser is a library that assists in parsing XML documents into generic PHP arrays.

    XMLParser is a library that assists in parsing XML documents into generic PHP arrays. It also comes with RSSParser, an extension of XMLParser that creates simple RSS-specific array structures from RSS feeds.

    Requirements:

    · The XMLParser requires the expat XML parsing library, which can be enabled in PHP with the configure flag "--enable-xml" during compilation.

    SYNOPSIS:

    require('XMLParser.class.php');

    $xml =& new XMLParser;

    $output = $xml->parse('sample.xml');

    print_r($output);

    sample.xml SOURCE:

    < user >
    < name >John Doe< /name >
    < addr >123 N 45< /addr >
    < phone >555.555.5555< /phone >
    < /user >

    OUTPUT:

    Array
    (
    [0] => Array
    (
    [name] => USER
    [content] =>

    [child] => Array
    (
    [0] => Array
    (
    [name] => NAME
    [content] => John Doe
    )

    [1] => Array
    (
    [name] => ADDR
    [content] => 123 N 45
    )

    [2] => Array
    (
    [name] => PHONE
    [content] => 555.555.5555
    )

    )

    )

    )

    What's New in This Release:

    · This release fixes a couple of PHP warnings, and fixes a bug that caused HTML entities to get removed from XML feeds.



    Product's homepage

      


    TAGS:

    XML parser | PHP library | XML library | XMLParser | PHP | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM