Skip to content
Browse files

Underscore seems to be a better attribute name than #

  • Loading branch information...
1 parent aa292ba commit 1991d13c3a5308e7482ee1635aaa41c93ca05124 @Leonidas-from-XIV committed May 5, 2012
Showing with 2 additions and 3 deletions.
  1. +1 −1 lib/xml2js.js
  2. +1 −2 src/xml2js.coffee
View
2 lib/xml2js.js
@@ -31,7 +31,7 @@
trim: false,
normalize: false,
attrkey: "$",
- charkey: "#",
+ charkey: "_",
explicitArray: true,
ignoreAttrs: false,
mergeAttrs: false,
View
3 src/xml2js.coffee
@@ -29,8 +29,7 @@ exports.defaults =
trim: false
normalize: false
attrkey: "$"
- # not sure if # is the best idea, will investigate
- charkey: "#"
+ charkey: "_"
explicitArray: true
ignoreAttrs: false
mergeAttrs: false

0 comments on commit 1991d13

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