Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elementtree

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elementtree - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

12

CHANGES.md

@@ -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 @@

2

lib/elementpath.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc