如题,工作时遇到了这个问题,单纯的需要转成xml,然后使用xml文件,翻遍互联网,没几个好用的,无意中翻到一个评论,原来idea就可以实现,自带的tools里边有个Xml Actions。
操作步骤:
1、打开xsd文件
2、点击Tools(idea上边的菜单栏)
3、找到Xml Actions
4、选择 Generate Instance Document from Schema(最后一个)
5、接下来选择需要生成的节点
6、完成
08-24
如题,工作时遇到了这个问题,单纯的需要转成xml,然后使用xml文件,翻遍互联网,没几个好用的,无意中翻到一个评论,原来idea就可以实现,自带的tools里边有个Xml Actions。
操作步骤:
1、打开xsd文件
2、点击Tools(idea上边的菜单栏)
3、找到Xml Actions
4、选择 Generate Instance Document from Schema(最后一个)
5、接下来选择需要生成的节点
6、完成