xml.js

Port of libxml to JavaScript using Emscripten

  • 所有者: kripken/xml.js
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

This branch adds an optional field to the options given to the validateXML function.
If the user adds a field format with the content rng, then the
argument used will be --relaxng instead of --schema. Otherwise
--schema is used.


Online demo at http://syssgx.github.com/xml.js/

This package exports the xmllint object which is an Emscripten port of
libxml2's xmllint command for use in the browser or node.

API

Object xmllint.validateXML({
	xml: "String",
	schema: "String", ["String", "String", ...]
});

The return value Object has one property errors which is either null,
in the case of no errors, or an Array of error strings....eg:


if (!xmllint.validateXML(opts).errors) {
	//there were no errors.
}

Usable with Browserify via browserify-shim.

Building xmllint from source

Install emscripten.

	git clone
	git submodule init
	git submodule update
	./script/clean
	./script/libxml2
	./script/compile
	./script/test

There are also equivalent gulp tasks.

主要指标

概览
名称与所有者kripken/xml.js
主编程语言JavaScript
编程语言JavaScript (语言数: 3)
平台
许可证Other
所有者活动
创建于2012-03-15 17:06:34
推送于2024-06-23 11:36:02
最后一次提交2023-09-21 03:29:17
发布数2
最新版本名称v0.1.1 (发布于 2016-08-02 16:18:42)
第一版名称v0.1.0 (发布于 )
用户参与
星数177
关注者数16
派生数71
提交数48
已启用问题?
问题数27
打开的问题数17
拉请求数6
打开的拉请求数2
关闭的拉请求数4
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?