gulp-xpath:Gulp 模块对流中的 XML 文档执行 XPath 查询并以字符串形式返回匹配项

时间:2021-05-29 14:06:50
【文件属性】:
文件名称:gulp-xpath:Gulp 模块对流中的 XML 文档执行 XPath 查询并以字符串形式返回匹配项
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-29 14:06:50
JavaScript 吞咽-xpath gulp-xpath 是一个插件,用于对流中的 XML 文档执行 XPath 查询并将匹配项作为字符串返回。 用法 var xpath = require ( 'gulp-xpath' ) ; // simple xpath that outputs all matches in a text file gulp . src ( [ './news/*.xml' ] ) . pipe ( xpath ( "/news-items/news[@category='git']" ) ) . pipe ( concat ( 'git_news.txt' ) ) . pipe ( gulp . dest ( './news' ) ) ; // defining custom namespaces gulp . src ( [ './news/*.xml' ] ) .
【文件预览】:
gulp-xpath-master
----index.js(2KB)
----package.json(871B)
----LICENSE(1KB)
----README.md(1KB)

网友评论