cloudfunctions/ClearingRedundantFolders/node_modules/xmlbuilder/README.md
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
# xmlbuilder-js
An XML builder for [node.js](https://nodejs.org/) similar to
[java-xmlbuilder](https://github.com/jmurty/java-xmlbuilder).
[](http://opensource.org/licenses/MIT)
[](https://npmjs.com/package/xmlbuilder)
[](https://npmjs.com/package/xmlbuilder)
[](http://travis-ci.org/oozcitak/xmlbuilder-js)
[](https://ci.appveyor.com/project/oozcitak/xmlbuilder-js)
[](https://david-dm.org/oozcitak/xmlbuilder-js)
[](https://coveralls.io/github/oozcitak/xmlbuilder-js)
### Installation:
``` sh
npm install xmlbuilder
```
### Usage:
``` js
var builder = require('xmlbuilder');
var xml = builder.create('root')
.ele('xmlbuilder')
.ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git')
.end({ pretty: true});
console.log(xml);
```
will result in:
``` xml
<?xml version="1.0"?>
<root>
<xmlbuilder>
<repo type="git">git://github.com/oozcitak/xmlbuilder-js.git</repo>
</xmlbuilder>
</root>
```
It is also possible to convert objects into nodes:
``` js
builder.create({
root: {
xmlbuilder: {
repo: {
'@type': 'git', // attributes start with @
'#text': 'git://github.com/oozcitak/xmlbuilder-js.git' // text node
}
}
}
});
```
If you need to do some processing:
后面还有 26 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
