127 lines
9.8 KiB
JSON
127 lines
9.8 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "xmldom@^0.1.27",
|
||
|
"scope": null,
|
||
|
"escapedName": "xmldom",
|
||
|
"name": "xmldom",
|
||
|
"rawSpec": "^0.1.27",
|
||
|
"spec": ">=0.1.27 <0.2.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl"
|
||
|
]
|
||
|
],
|
||
|
"_from": "xmldom@>=0.1.27 <0.2.0",
|
||
|
"_id": "xmldom@0.1.27",
|
||
|
"_inCache": true,
|
||
|
"_location": "/xmldom",
|
||
|
"_nodeVersion": "5.5.0",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-12-west.internal.npmjs.com",
|
||
|
"tmp": "tmp/xmldom-0.1.27.tgz_1480305406093_0.9070004557725042"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "jindw",
|
||
|
"email": "jindw@xidea.org"
|
||
|
},
|
||
|
"_npmVersion": "3.3.12",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "xmldom@^0.1.27",
|
||
|
"scope": null,
|
||
|
"escapedName": "xmldom",
|
||
|
"name": "xmldom",
|
||
|
"rawSpec": "^0.1.27",
|
||
|
"spec": ">=0.1.27 <0.2.0",
|
||
|
"type": "range"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/plist",
|
||
|
"/xdl"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz",
|
||
|
"_shasum": "d501f97b3bdb403af8ef9ecc20573187aadac0e9",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "xmldom@^0.1.27",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/xdl",
|
||
|
"author": {
|
||
|
"name": "jindw",
|
||
|
"email": "jindw@xidea.org",
|
||
|
"url": "http://www.xidea.org"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "http://github.com/jindw/xmldom/issues",
|
||
|
"email": "jindw@xidea.org"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Yaron Naveh",
|
||
|
"email": "yaronn01@gmail.com",
|
||
|
"url": "http://webservices20.blogspot.com/"
|
||
|
},
|
||
|
{
|
||
|
"name": "Harutyun Amirjanyan",
|
||
|
"email": "amirjanyan@gmail.com",
|
||
|
"url": "https://github.com/nightwing"
|
||
|
},
|
||
|
{
|
||
|
"name": "Alan Gutierrez",
|
||
|
"email": "alan@prettyrobots.com",
|
||
|
"url": "http://www.prettyrobots.com/"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {},
|
||
|
"description": "A W3C Standard XML DOM(Level2 CORE) implementation and parser(DOMParser/XMLSerializer).",
|
||
|
"devDependencies": {
|
||
|
"proof": "0.0.28"
|
||
|
},
|
||
|
"directories": {},
|
||
|
"dist": {
|
||
|
"shasum": "d501f97b3bdb403af8ef9ecc20573187aadac0e9",
|
||
|
"tarball": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz"
|
||
|
},
|
||
|
"engines": {
|
||
|
"node": ">=0.1"
|
||
|
},
|
||
|
"gitHead": "b53aa82a36160d85faab394035dcd1784764537f",
|
||
|
"homepage": "https://github.com/jindw/xmldom",
|
||
|
"keywords": [
|
||
|
"w3c",
|
||
|
"dom",
|
||
|
"xml",
|
||
|
"parser",
|
||
|
"javascript",
|
||
|
"DOMParser",
|
||
|
"XMLSerializer"
|
||
|
],
|
||
|
"licenses": [
|
||
|
{
|
||
|
"type": "LGPL",
|
||
|
"url": "http://www.gnu.org/licenses/lgpl.html",
|
||
|
"MIT": "http://opensource.org/licenses/MIT"
|
||
|
}
|
||
|
],
|
||
|
"main": "./dom-parser.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "jindw",
|
||
|
"email": "jindw@xidea.org",
|
||
|
"url": "http://www.xidea.org"
|
||
|
}
|
||
|
],
|
||
|
"name": "xmldom",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# XMLDOM [![Build Status](https://secure.travis-ci.org/bigeasy/xmldom.png?branch=master)](http://travis-ci.org/bigeasy/xmldom) [![Coverage Status](https://coveralls.io/repos/bigeasy/xmldom/badge.png?branch=master)](https://coveralls.io/r/bigeasy/xmldom) [![NPM version](https://badge.fury.io/js/xmldom.png)](http://badge.fury.io/js/xmldom)\n\nA JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully\ncompatible with `W3C DOM level2`; and some compatible with `level3`. Supports\n`DOMParser` and `XMLSerializer` interface such as in browser.\n\nInstall:\n-------\n>npm install xmldom\n\nExample:\n====\n```javascript\nvar DOMParser = require('xmldom').DOMParser;\nvar doc = new DOMParser().parseFromString(\n '<xml xmlns=\"a\" xmlns:c=\"./lite\">\\n'+\n '\\t<child>test</child>\\n'+\n '\\t<child></child>\\n'+\n '\\t<child/>\\n'+\n '</xml>'\n ,'text/xml');\ndoc.documentElement.setAttribute('x','y');\ndoc.documentElement.setAttributeNS('./lite','c:x','y2');\nvar nsAttr = doc.documentElement.getAttributeNS('./lite','x')\nconsole.info(nsAttr)\nconsole.info(doc)\n```\nAPI Reference\n=====\n\n * [DOMParser](https://developer.mozilla.org/en/DOMParser):\n\n\t```javascript\n\tparseFromString(xmlsource,mimeType)\n\t```\n\t* **options extension** _by xmldom_(not BOM standard!!)\n\n\t```javascript\n\t//added the options argument\n\tnew DOMParser(options)\n\t\n\t//errorHandler is supported\n\tnew DOMParser({\n\t\t/**\n\t\t * locator is always need for error position info\n\t\t */\n\t\tlocator:{},\n\t\t/**\n\t\t * you can override the errorHandler for xml parser\n\t\t * @link http://www.saxproject.org/apidoc/org/xml/sax/ErrorHandler.html\n\t\t */\n\t\terrorHandler:{warning:function(w){console.warn(w)},error:callback,fatalError:callback}\n\t\t//only callback model\n\t\t//errorHandler:function(level,msg){console.log(level,msg)}\n\t})\n\t\t\n\t```\n\n * [XMLSerializer](https://developer.mozilla.org/en/XMLSerializer)\n \n\t```javascript\n\tserializeToString(node)\n\t```\nDOM level2 method and attribute:\n------\n\n * [Node](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-1950641247)\n\t\n\t\tattribute:\n\t\t\tnodeValue|prefix\n\t\treadonly attribute:\n\t\t\tnodeName|nodeType|parentNode|childNodes|firstChild|lastChild|previousSibling|nextSibling|attributes|ownerDocument|namespaceURI|localName\n\t\tmethod:\t\n\t\t\tinsertBefore(newChild, refChild)\n\t\t\treplaceChild(newChild, oldChild)\n\t\t\tremoveChild(oldChild)\n\t\t\tappendChild(newChild)\n\t\t\thasChildNodes()\n\t\t\tcloneNode(deep)\n\t\t\tnormalize()\n\t\t\tisSupported(feature, version)\n\t\t\thasAttributes()\n\n * [DOMImplementation](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-102161490)\n\t\t\n\t\tmethod:\n\t\t\thasFeature(feature, version)\n\t\t\tcreateDocumentType(qualifiedName, publicId, systemId)\n\t\t\tcreateDocument(namespaceURI, qualifiedName, doctype)\n\n * [Document](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#i-Document) : Node\n\t\t\n\t\treadonly attribute:\n\t\t\tdoctype|implementation|documentElement\n\t\tmethod:\n\t\t\tcreateElement(tagName)\n\t\t\tcreateDocumentFragment()\n\t\t\tcreateTextNode(data)\n\t\t\tcreateComment(data)\n\t\t\tcreateCDATASection(data)\n\t\t\tcreateProcessingInstruction(target, data)\n\t\t\tcreateAttribute(name)\n\t\t\tcreateEntityReference(name)\n\t\t\tgetElementsByTagName(tagname)\n\t\t\timportNode(importedNode, deep)\n\t\t\tcreateElementNS(namespaceURI, qualifiedName)\n\t\t\tcreateAttributeNS(namespaceURI, qualifiedName)\n\t\t\tgetElementsByTagNameNS(namespaceURI, localName)\n\t\t\tgetElementById(elementId)\n\n * [DocumentFragment](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-B63ED1A3) : Node\n * [Element](http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/core.html#ID-745549614) : Node\n\t\t\n\t\treadonly attribute:\n\t\t\ttagName\n\t\tmethod:\n\t\t\tgetAttribute(name)\n\t\t\tsetAttribute(name, value)\n\t\t\tremoveAttribute(name)\n\t\t\tgetAttributeNode(name)\n\t\t\tsetAttributeNode(newAttr
|
||
|
"readmeFilename": "readme.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/jindw/xmldom.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "proof platform win32 && proof test */*/*.t.js || t/test"
|
||
|
},
|
||
|
"version": "0.1.27"
|
||
|
}
|