Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
xsdlibrary
Advanced tools
XML Schema library to convert XML to XSD (XML Schema) using pure javascript.
npm
$ npm install xsdlibrary
yarn
$ yarn add xsdlibrary
import {
xml2xsd,
xsd2jsonSchema,
json2xsd,
validateXml,
detectXmlSchema,
jsonSchema2xsd
} from xsdlibrary;
Convert XML data to XML Schema(XSD)
const xmlString = ``; // your xml string
xml2xsd(xmlString); // returns xml schema
Convert XML Schema to Json Schema
const xsdString = ""; // your xml schema string
xsd2jsonSchema(xsdString); // returns "xml" or "xsd" or an error object if none
Convert JSON Schema to XML Schema
const jsonObj = {}; // your javascript object
jsonSchema2xsd(jsonObj); // returns xml schema
Validate XML or XML Schema
const xmlString = ""; // your xml or xml schema string
validateXml(xmlString); // returns true if valid or an error object
Detect XML or XML Schema
const string = ""; // your xml or xml schema string
detectXmlSchema(string); // returns "xml" or "xsd" or an error object if none
FAQs
Xml Schema Library
The npm package xsdlibrary receives a total of 208 weekly downloads. As such, xsdlibrary popularity was classified as not popular.
We found that xsdlibrary 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.