In Java, how do I parse an xml schema (xsd) to learn what's valid at a given element?

前端 未结 6 2060
感动是毒
感动是毒 2021-02-08 23:01

I\'d like to be able to read in an XML schema (i.e. xsd) and from that know what are valid attributes, child elements, values as I walk through it.

For example, let\'s

6条回答
  •  耶瑟儿~
    2021-02-08 23:35

    Have a look at this. How to parse schema using XOM Parser.

    Also, here is the project home for XOM

提交回复
热议问题