Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs'), libxml = require('./libxmljs');
var parser = new libxml.SaxPushParser(function(cb) {
var stack = [];
cb.onStartDocument(function() {
console.log('Starting to parse ...');
});
cb.onStartElementNS(function(elem, attrs, prefix, uri, namespaces) {
var obj = {};
obj['@'] = {};
@jscheel
jscheel / fiddle.response.json
Created January 31, 2012 16:16 — forked from traviskroberts/gist:1711232
fiddle.response.json
[
{
"id": 1,
"account_id": 3,
"wine_id": 646,
"qty": 12,
"format": "bottle",
"vintage": 1982,
"created_at": "2012-01-30T16:26:22Z",
"updated_at": "2012-01-30T16:26:22Z",
@jscheel
jscheel / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console