node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

sims-photo-album-parser

sims-photo-album-parser

Parse the XML from a Sims 2 Photo Album into a JSON object.

install

The normal way:

npm install sims-photo-album-parser

use

Just call it with a path to the XML file:

var parse = require('sims-photo-album-parser')
var path_to_photo_album_xml_file = '/Users/saibotsivad/Games/Sims2/Neighborhood/N005/Storytelling/webentry_fe180f20.xml'
 
parse(path_to_photo_album_xml_file, function(err, photoAlbum) {
    console.log('Family Name:', photoAlbum.familyName)
})

bugs and requests

If you find a bug in here, please file an issue.

If possible, please include the XML content that is causing issues.

license

VOL