elementtree
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,13 @@ | ||
elementtree v0.1.4 | ||
* Allow user to use namespaced attributes when using find* functions. | ||
[Andrew Lunny] | ||
elementtree v0.1.3 | ||
* Improve the output of text content in the tags (strip unnecessary line break | ||
characters). | ||
[Darryl Pogue] | ||
elementtree v0.1.2 | ||
@@ -2,0 +14,0 @@ |
@@ -33,3 +33,3 @@ /** | ||
"[/.*:\\[\\]\\(\\)@=])|" + | ||
"((?:\\{[^}]+\\})?[^/:\\[\\]\\(\\)@=\\s]+)|" + | ||
"((?:\\{[^}]+\\})?[^/\\[\\]\\(\\)@=\\s]+)|" + | ||
"\\s+", 'g' | ||
@@ -36,0 +36,0 @@ ); |
@@ -9,3 +9,3 @@ { | ||
"description": "XML Serialization and Parsing module based on Python's ElementTree.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"keywords": [ "xml", "sax", "parser", "seralization", "elementtree" ], | ||
@@ -12,0 +12,0 @@ "homepage": "https://github.com/racker/node-elementtree", |
@@ -27,3 +27,3 @@ /** | ||
var SubElement = et.SubElement; | ||
var SyntaxError = require('errors').SyntaxError; | ||
var SyntaxError = require('./../lib/errors').SyntaxError; | ||
@@ -207,2 +207,11 @@ function readFile(name) { | ||
exports['test_namespaced_attribute'] = function(test, assert) { | ||
var data = readFile('xml1.xml'); | ||
var etree = et.parse(data); | ||
assert.equal(etree.findall('*/bytes[@android:type="cool"]').length, 1); | ||
test.finish(); | ||
} | ||
exports['test_syntax_errors'] = function(test, assert) { | ||
@@ -209,0 +218,0 @@ var expressions = [ './/@bar', '[@bar', '[@foo=bar]', '[@', '/bar' ]; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52869
1295