Skip to content

JavaScript utility to transform Property List (plist) XML into JSON format - for web browsers and titanium

Notifications You must be signed in to change notification settings

pugetive/plist_parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

PlistParser

PlistParser accepts a Property List expressed as an XML string and transforms it into a JavaScript data structure. Structure signifiers (ARRAY, DICT, KEY) in the XML are discarded - their data are returned as JavaScript arrays and associative arrays. Currently the only output option is JSON.

PlistParser does not rely on any external libraries like jQuery or JSON. It was written for use within the Appcelerator Titanium environment, but also works with modern browsers. Tested in Titanium, Firefox, IE, Safari, Chrome, and Opera.

Usage

Include 'plist_parser.js' via an HTML script tag or Titanium.include().

var jsonString = PlistParser.parse(xmlString);

New Convert Objects into Plist XML

var plistString = PlistParser.toPlist(obj);

About

JavaScript utility to transform Property List (plist) XML into JSON format - for web browsers and titanium

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •