好用的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

相关推荐
一叶龙洲11 小时前
Java中使用模板引擎(FreeMarker / Velocity) + Word XML导出复杂Word
xml·java·word
Mike_6661 天前
txt_json和xml_json
xml·python·json
20YC编程社区1 天前
一分钟了解XML语言格式,使用场景,和它的优缺点
xml
Kay.Wen1 天前
LabVIEW 转换 XML文本
xml·labview
练习时长一年1 天前
浅谈assembly插件打包分发机制
xml
历程里程碑3 天前
Protobuf vs JSON vs XML:小白该怎么选?
xml·大数据·数据结构·elasticsearch·链表·搜索引擎·json
那个失眠的夜4 天前
Mybatis延迟加载策略
xml·java·数据库·maven·mybatis
mfxcyh4 天前
基于xml、注解、JavaConfig实现spring的ioc
xml·java·spring
vortex54 天前
SOAP 协议中的 XML 外部实体注入(XXE)漏洞
xml·网络安全·渗透测试
Dxy12393102164 天前
Python如何对XML进行格式化
xml·python