New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jsxml

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsxml

javascript utilities for working xml, mainly in jsonml in array form

latest
npmnpm
Version
0.0.2
Version published
Weekly downloads
890
4.09%
Maintainers
1
Weekly downloads
 
Created
Source

logo Jsxml

JavaScript utilities for parsing and working xml, mainly in jsonml in array form.

More info on JsonML at jsonml.org and wikipedia

This module implements the following functions:

  • jsxml.fromXml(xml_string) converts a string containing xml to jsonml in array form
  • jsxml.toXml(jsxml_array) converts jsonml in array form to xml
  • jsxml.toObject(jsxml_array) converts jsonml in array form to an easier subscriptable object
  • jsxml.childReduce(jsxml_array, callback_function(accumulator, child_element), initial_value) applies the callback function to each child element of the jsonml array
  • jsxml.getAttr(jsxml_array, attribute) retrieves the value of a given attribute of the jsonml array or undefined if no attributes, or no attributes defined

Released under open source / MIT license

Keywords

jsonml

FAQs

Package last updated on 24 Nov 2013

Did you know?

Socket

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.

Install

Related posts