[Pkg-javascript-commits] [node-expat] 07/371: README: Instructions & Namespace handling

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit fb233683c79c2a02b9bd8f159cacdae11d6f28b8
Author: Astro <astro at spaceboyz.net>
Date:   Sat May 22 15:33:09 2010 +0200

    README: Instructions & Namespace handling
---
 README.markdown | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/README.markdown b/README.markdown
index 90ed12d..975276a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -3,7 +3,7 @@
 ## Motivation ##
 
 You use [node.js](http://github.com/ry/node) for speed? You process
-XML streams? Then you want the fastest XML parser: libexpat!
+XML streams? Then you want the fastest XML parser: [libexpat](http://expat.sourceforge.net/)!
 
 ## Speed ##
 
@@ -16,3 +16,24 @@ A stupid speed test is supplied in `bench.js`. We measure how many
 
 These numbers were recorded on a Core 2 2400 MHz and may turn out to
 be bullshit, given my few node.js experience.
+
+## Instructions ##
+
+    node-waf configure
+    node-waf build
+
+For using the library, make sure `build/default/expat.node` is in
+either `$NODE_PATH` or `require.paths`.
+
+So far, three events are emitted by a parser:
+* *startElement* with `name, attrs`
+* *endElement* with `name`
+* *text* with `string`
+
+Use `test.js` for reference.
+
+## Namespace handling ##
+
+A word about special parsing of *xmlns:* this is not neccessary in a
+bare SAX parser like this, given that the DOM replacement you are
+using (if any) is not relevant to the parser.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list