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

edwood

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

edwood

Library for building in-browser schema-aware XML editors

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Edwood Build Status Bower version npm version

Edwood is a JavaScript library for building in-browser schema-aware XML editors.

Features

An editor built with Edwood will display an XML document as the HTML document of your choice. It will show validation errors in real time, and let the user correct them in-place. In the end, it will serialize the document so that the user can save it back.

Edwood understands Relax NG schemas.

Usage

At the document level, Edwood offers a DOM interface for you to edit an XML document and locate validation errors. At the UI level, Edwood provides React components to edit a document or part of it. An Edwood application is really a React application that uses an Edwood DOM as its model and Edwood components in its views.

You can use Edwood in plain JavaScript (ES5) and we also provide a TypeScript API. Edwood itself is written in TypeScript.

Have a look at the demo for an example.

Limitations

The project is at an early stage. API is very likely to change.

You must write schemas in Relax NG simple syntax, without external reference nor include. ns attribute of data and value patterns are ignored.

Edwood supports only a few XML Schema datatypes and facets for now.

Edwood performs global (not yet incremental) validation and rendering, which is unsuitable for large XML documents.

License

Released under the MIT license.

FAQs

Package last updated on 15 Mar 2015

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