Skip to content
Browse files

Pedantic blank adjustment

  • Loading branch information...
1 parent b49f965 commit 882b71dbd756e0d78b023790e72ff2a8abbaf1a3 @Leonidas-from-XIV committed
Showing with 6 additions and 6 deletions.
  1. +3 −3 README.md
  2. +3 −3 src/xml2js.coffee
View
6 README.md
@@ -134,9 +134,9 @@ value})``. Possible options are:
* `validator` (default `null`): You can specify a callable that validates
the resulting structure somehow, however you want. See unit tests
for an example.
- * `xmlns` (default `false`): Give each element a field usually called '$ns'
- (the first character is the same as attrkey) that contains its local name
- and namespace uri.
+ * `xmlns` (default `false`): Give each element a field usually called '$ns'
+ (the first character is the same as attrkey) that contains its local name
+ and namespace URI.
These default settings are for backward-compatibility. These are scheduled to
change to a more 'clean' way of parsing in version 0.2.
View
6 src/xml2js.coffee
@@ -55,7 +55,7 @@ class exports.Parser extends events.EventEmitter
# define the key used for namespaces
if @options.xmlns
@options.xmlnskey = @options.attrkey + "ns"
-
+
@reset()
reset: =>
@@ -87,7 +87,7 @@ class exports.Parser extends events.EventEmitter
# aliases, so we don't have to type so much
attrkey = @options.attrkey
charkey = @options.charkey
-
+
@saxParser.onopentag = (node) =>
obj = {}
obj[charkey] = ""
@@ -103,7 +103,7 @@ class exports.Parser extends events.EventEmitter
# need a place to store the node name
obj["#name"] = if @options.normalizeTags then node.name.toLowerCase() else node.name
if (@options.xmlns)
- obj[@options.xmlnskey] = {uri: node.uri, local : node.local}
+ obj[@options.xmlnskey] = {uri: node.uri, local: node.local}
stack.push obj
@saxParser.onclosetag = =>

0 comments on commit 882b71d

Please sign in to comment.
Something went wrong with that request. Please try again.