Dom方式解析xml
xml解析器一次性把整个xml文档加载进内存,然后在内存中构建一个Document的对象树,
通过Document对象,得到树上的节点对象,通过节点对象访问xml文档内容。
参照:
https://www.cnblogs.com/fnz0/p/5538459.html
https://blog.csdn.net/zflovecf/article/details/78908788