GithubHelp home page GithubHelp logo

xml2js-schema's Introduction

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.

xml2js-schema's People

Contributors

salsita-buildserver avatar

Stargazers

minhaolee avatar Jan Killian avatar Jesús Leganés-Combarro avatar Matthew Gertner avatar

Watchers

Rafael Vieira avatar Georgy Bolyuba avatar Jan Killian avatar Alfred DeRose avatar  avatar  avatar Filip Bures avatar Tom Režnar avatar James Cloos avatar ♨  b.rad avatar Fela Maslen avatar Opi Danihelka avatar Pavel Přibyl avatar Alex Khrapko avatar Fallup avatar IL avatar Daniel Prentis avatar  avatar Jonas Vaclavek avatar Thomas avatar Evgeny Sumin avatar  avatar Branislav Holý avatar Jakub Dubovsky avatar Pavel John avatar Daniel Lopez avatar Jan Dedecek avatar Filip Cicvárek avatar Karel Tesař avatar Roman Vaivod avatar Vojtech Burian avatar Antonín Jareš avatar Katarina Achberger avatar Lubos Turek avatar Craig Bishell avatar verča avatar Vitalii Savenchuk avatar Stepan avatar Gökhan Türkmen avatar Petr Martišek avatar  avatar WandaStransky avatar Jan Kotrlik avatar Mark Karpilovskij avatar Petr Hermansky avatar  avatar Katerina Nachtneblova avatar Petr Morong avatar  avatar Kelepouri Katerina avatar  avatar Petra Zabojnikova avatar Lukáš Král avatar Radek Zábranský avatar MartinP avatar Martin Cerny avatar  avatar  avatar Axel De Acetis avatar Jozef Lelič avatar  avatar Nikola avatar

Forkers

lium-pku

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.