Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
##A fork of the original xtraverse package - with updates.
Simplified traversal and building of an XML DOM.
This module provides a jQuery-like wrapper, but geared for
traversing and manipulating an XML DOM, as opposeed to an HTML DOM. The API
aims to be compatible with Strophe.js'
Builder
and Less-Than XML. The underlying DOM
is W3C standard, provided by XMLDOM.
$ npm install xtraverse1
var xml = fs.readFileSync('feed.xml', 'utf8');
var feed = XT(xml);
console.log(feed.children('title').text());
for (var link = feed.children().first('link'); link.length > 0; link = link.next('link')) {
console.log(link.attr('href'));
}
for (var entry = feed.children().first('entry'); entry.length > 0; entry = entry.next('entry')) {
console.log('Entry: ' + entry.children('title').text());
}
var feed = XT('<feed xmlns="http://www.w3.org/2005/Atom"/>')
.c('title').t('Example Feed').up()
.c('link', { href: 'http://example.org/' })
.c('entry').c('title').t('Atom-Powered Robots Run Amok').up().up()
.c('entry').c('title').t('Today I Ate Pancakes');
$ npm install
$ npm test
Copyright (c) 2013 Jared Hanson <http://jaredhanson.net/>
FAQs
Wrapper for simplifying XML traversal.
We found that xtraverse1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.