salsita / xml2js-schema Goto Github PK
View Code? Open in Web Editor NEWExtends node-xml2js with schema validation support based on JSON schema
Extends node-xml2js with schema validation support based on JSON schema
node-xml2js (https://github.com/Leonidas-from-XIV/node-xml2js) is a great way to create generic JS objects from XML documents. One issue is that properties that are arrays will only be generated as arrays in the target object if they contain more than one item. Also, properties with data types other than string will be stored as strings in the object. Finally, no validation of the object data occurs (e.g. to make sure that a required property is present). xml2js-schema is a proposed add-on for node-xml2js that validates a JS object as it is created using a JSON schema (http://json-schema.org/). It makes sure that properties have the right data types and does some basic validation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.