得到ComplexType后,还要解析它的元素和序列 [英] After getting ComplexType, also parse its elements and sequences

查看:23
本文介绍了得到ComplexType后,还要解析它的元素和序列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想解析 xsd 文件 http://pastebin.com/UzN8WnD3.

我尝试用以下代码解析它:

I try to parse it with this code:

http://pastebin.com/djiFCu2a

获取complexType元素后如何解析子元素?

How do I parse child elements after getting complexType elements?

推荐答案

看一看 JAXB 参考实现项目模型开发工具 (MDT).也许它可以帮助你.这是标准方式.

Take a look at JAXB Reference Implementation Project and Model Development Tools (MDT). Maybe it helps you. It is the standard way.

尝试使用堆栈溢出问题中的代码Java API解析 XSD 架构文件.

Try using the code in Stack Overflow question Java API to parse XSD schema file.

这篇关于得到ComplexType后,还要解析它的元素和序列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆