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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?