This project has stopped.
PHP 5 now provides an easy-to-use, flexible XML handling extension module "SimpleXML".

Abstract

This is a PHP parser class for data management by XML using Apple's Property List DTD. This parses whole the supplied XML expression then converts it into an array keeping all structures of the original XML. String in <key> tag is to be stored as array key, and following tag as value.

See also http://www.apple.com/DTDs/PropertyList-1.0.dtd for more information about Property List DTD.

Reference

Fields
Type Name
string $url
DomDocument $doc
string $dateFormat
integer $timeZone
object $dataArray
Constructors
Plist ()
Plist (string $url)
Plist (string $url, string $dateFormat)
Plist (string $url, string $dateFormat, int $timeZone)
Methods
Type Name
string convertIntoPlist (array &$array)
string formatDate (string $date, string $format)
string formatDate (string $date, string $format, int $offsetHour)
string formatDate (string $date, string $format, int $offsetHour, int $offsetMinute)
array &getData ()
void setDateFormat (string $dateFormat)
void setTimeZone (int $timeZone)
void setURL (string $url)

This is experimental and I assume no responsibility for any probrem resulting from the use of this.

Download

Change History

  • 2006-9-21 (Thanks to Jim Myhrberg)
    • Fixed integer handling.
    • Fixed key value errors in array to xml conversion.
    • Added human readable xml output option for array to xml conversion.
  • 2006-5-7
    • Fixed formatting problem of formatDate() method.
    • Added some getter/setter methods.
  • 2005-10-6
    • Fixed return problem of parse() method.
  • 2005-4-23
    • First Release.
Toggle Comment Form