pixl-xml
Advanced tools
Comparing version 1.0.11 to 1.0.12
{ | ||
"name": "pixl-xml", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A simple module for parsing and composing XML.", | ||
@@ -5,0 +5,0 @@ "author": "Joseph Huckaby <jhuckaby@gmail.com>", |
@@ -170,3 +170,3 @@ # Overview | ||
If you want to preserve whitespace before and after text inside elements, set the `preserveWhitespace` flag to a true value. Note that this has no effect on attributes (whitespace is always preserved there), nor does it effect whitespace |between| complex elements. Example: | ||
If you want to preserve whitespace before and after text inside elements, set the `preserveWhitespace` flag to a true value. Note that this has no effect on attributes (whitespace is always preserved there), nor does it effect whitespace *between* complex elements. Example: | ||
@@ -195,3 +195,3 @@ ```js | ||
Notice that the whitespace before/after all the opening and closing tags has no effect on the parsed object. It only has effect |inside| elements that also contain a text value. | ||
Notice that the whitespace before/after all the opening and closing tags has no effect on the parsed object. It only has effect *inside* elements that also contain a text value. | ||
@@ -198,0 +198,0 @@ ## Composing XML |
@@ -34,3 +34,3 @@ /* | ||
var sort_args = null; | ||
var re_valid_tag_name = /^\w[\w\-\:]*$/; | ||
var re_valid_tag_name = /^\w[\w\-\:\.]*$/; | ||
@@ -37,0 +37,0 @@ var XML = exports.XML = exports.Parser = function XML(args, opts) { |
33813