Git Product home page Git Product logo

js-omgxml's Introduction

js-omgxml

Feature-complete XML implementation? OMG!

Project Manifesto

Sometimes, you just have to read or write XML. As a Node developer, every single time I need to do anything with XML, I only find XML libraries that are:

  • Incomplete implementations; yes I really do need XML namespaces and CDATA.
  • Bindings to native libraries that either don't build on all platforms or segfault
  • Leaky-abstraction Wrappers
  • Riddled with three-year-old bugs

This may be hubris, but I want to create an XML library that:

  • Passes all conformance tests; why even release and XML library before then?
  • Supports all the functionality you usually need when working with XML; you shouldn't need a whole suite of tools lacking design fidelity. To me, this means:
    • A streaming XML parser (that can also take strings)
    • A streaming XML writer (that can also create strings)
    • A DOM
    • XPath
  • Is pure JS; JavaScript is totally powerful enough to implement XML; why bring C into this?
  • Ignores the needs of ancient JS implementations; ain't nobody got time for that, and browsers have their own DOM implementation anyway.

Once these core goals are completed, then it's a foundation you can reliably wrap with conveniences without compromising on XML compliance. By conveniences, I mean:

  1. A fluent API wrapper around the DOM
  2. Error correction for less-strict parsing
  3. Maybe a native XSLT engine?

Project Status

Here are the project tasks in priority order (subject to change):

Prior to 1.0 release:

  • Streaming XML parser
  • Streaming XML serializer
  • DOM level 1
  • DOM level 2
  • DOM level 3
  • XPath 1.0
  • XPath 2.0

Future plans:

  • Fluent API
  • XSLT

js-omgxml's People

Contributors

apoco avatar

Watchers

 avatar  avatar

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.