Skip to content

Commit

Permalink
Merge pull request #3 from sterpe/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
sterpe committed Feb 6, 2015
2 parents 1b43b67 + 88e9be2 commit 0d501ee
Show file tree
Hide file tree
Showing 4,009 changed files with 299 additions and 845,639 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
build/
bundle.js
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "libxml2"]
path = libxml2
url = git://git.gnome.org/libxml2
3 changes: 0 additions & 3 deletions README.markdown

This file was deleted.

45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@

Online demo at http://syssgx.github.com/xml.js/

This package exports the `xmllint` object which is an Emscripten port of
libxml2's `xmllint` command for use in the browser or node.

##### API #####

```javascript

Object xmllint.validateXML({
xml: "String",
schema: "String" || ["String", "String", ...]
});

```

The return value Object has one property `errors` which is either null,
in the case of no errors, or an Array of error strings....eg:

```javascript

if (!xmllint.validateXML(opts).errors) {
//there were no errors.
}

```

Usable with Browserify via `browserify-shim`.

#### Building xmllint from source ####

Install emscripten.

```
git clone
git submodule init
git submodule update
./script/clean
./script/libxml2
./script/compile
./script/test
```

There are also equivalent `gulp` tasks.
21 changes: 0 additions & 21 deletions build.sh

This file was deleted.

28 changes: 28 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var gulp = require('gulp')
, spawn = require('child_process').spawn
;

gulp.task('clean', [], function (cb) {
spawn('./script/clean', [], {
stdio: 'inherit'
}).on('close', cb);
});

gulp.task('libxml2', ['clean'], function (cb) {
spawn('./script/libxml2', [], {
stdio: 'inherit'
}).on('close', cb);
});

gulp.task('test', [], function (cb) {
spawn('./script/test', [], {
stdio: 'inherit'
}).on('close', cb);
});

gulp.task('compile', [], function (cb) {
spawn('./script/compile', [
], {
stdio: 'inherit'
}).on('close', cb);
});
1 change: 1 addition & 0 deletions libxml2
Submodule libxml2 added at 726f67
5 changes: 0 additions & 5 deletions libxml2-2.7.8/AUTHORS

This file was deleted.

1 change: 0 additions & 1 deletion libxml2-2.7.8/COPYING

This file was deleted.

Loading

0 comments on commit 0d501ee

Please sign in to comment.