xml2js
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -1,2 +0,2 @@ | ||
// Generated by CoffeeScript 1.3.3 | ||
// Generated by CoffeeScript 1.4.0 | ||
(function() { | ||
@@ -21,2 +21,3 @@ var events, isEmpty, sax, | ||
normalize: true, | ||
normalizeTags: false, | ||
attrkey: "@", | ||
@@ -34,2 +35,3 @@ charkey: "#", | ||
normalize: false, | ||
normalizeTags: false, | ||
attrkey: "$", | ||
@@ -120,3 +122,3 @@ charkey: "_", | ||
} | ||
obj["#name"] = node.name; | ||
obj["#name"] = _this.options.normalizeTags ? node.name.toLowerCase() : node.name; | ||
return stack.push(obj); | ||
@@ -123,0 +125,0 @@ }; |
@@ -6,3 +6,3 @@ { | ||
"homepage" : "https://github.com/Leonidas-from-XIV/node-xml2js", | ||
"version" : "0.2.0", | ||
"version" : "0.2.1", | ||
"author" : "Marek Kubica <marek@xivilization.net> (http://xivilization.net)", | ||
@@ -9,0 +9,0 @@ "contributors" : [ |
@@ -114,5 +114,10 @@ node-xml2js | ||
* `attrkey` (default: `$`): Prefix that is used to access the attributes. | ||
Version 0.1 default was `@`. | ||
* `charkey` (default: `_`): Prefix that is used to access the character | ||
content. Version 0.1 default was `#`. | ||
* `explicitCharkey` (default: `false`) | ||
* `trim` (default: `false`): Trim the whitespace at the beginning and end of | ||
text nodes. | ||
* `normalizeTags` (default: `false`): Normalize all tag names to lowercase. | ||
* `normalize` (default: `false`): Trim whitespaces inside text nodes. | ||
@@ -119,0 +124,0 @@ * `explicitRoot` (default: `true`): Set this if you want to get the root |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
32067
204
176