好用的XML解析库——fast-xml-parser

有时候需要在前台用到xml的解析,并且可能需要解析后再重新生成xml字符串,这个时候就可以用到fast-xml-parser了。

优点

使用简单,主要有两个对象,分别是XMLParser和XMLBuilder。

主要需要关注的属性有 ignoreAttributes 和 suppressEmptyNode 。

npm库地址

https://www.npmjs.com/package/fast-xml-parser

测试地址

https://naturalintelligence.github.io/fast-xml-parser/

github地址

https://github.com/NaturalIntelligence/fast-xml-parser

相关推荐
不会编程的懒洋洋3 天前
WPF XAML+布局+控件
xml·开发语言·c#·视觉检测·wpf·机器视觉·视图
鸽芷咕4 天前
KingbaseES数据类型完全指南:从基础CHAR到JSON/XML/几何类型
xml·oracle·json
java1234_小锋8 天前
MyBatis中XML映射有哪些标签?
xml·tomcat·mybatis
大腕先生8 天前
通用分页超详细介绍(附带源代码解析&页面展示效果)
xml·java·linux·服务器·开发语言·前端·idea
许彰午11 天前
Spring Boot + Vue 实现 XML 动态表单:固定字段 + 自由扩展方案
xml·vue.js·spring boot
untE EADO12 天前
Tomcat的server.xml配置详解
xml·java·tomcat
zuowei288912 天前
spring实例化对象的几种方式(使用XML配置文件)
xml·java·spring
weixin_5206498712 天前
xml json ini 文件语法
xml·java·json
Full Stack Developme12 天前
Hutool XML 操作教程
xml·windows·python