用java编写 用正则表达式获取XML中得节点的内容,生成树,然后把生成的树遍历
<?xmlversion="1.0"encoding="UTF-8"?><parents><parent><child>李明<child><child>张三<child>...
<?xml version="1.0" encoding="UTF-8"?>
<parents>
<parent>
<child>李明<child>
<child>张三<child>
</parent>
<parent>
<child>1<child>
<child>2<child>
<child>3<child>
<parent>
<parents> 展开
<parents>
<parent>
<child>李明<child>
<child>张三<child>
</parent>
<parent>
<child>1<child>
<child>2<child>
<child>3<child>
<parent>
<parents> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询