开发者

Parsing wsdl and xsd

开发者 https://www.devze.com 2023-02-24 00:26 出处:网络
I\'ve been looking for a way to programmatically parse WSDL and ass开发者_高级运维ociated XSD files to get values from annotation / documentation tags. I managed to get values from wsdl using wsdl4j,

I've been looking for a way to programmatically parse WSDL and ass开发者_高级运维ociated XSD files to get values from annotation / documentation tags. I managed to get values from wsdl using wsdl4j, but how do i do this for XSD files? I tried to use XSOM but for some reason i always get null.


You can attack the files with any XML parser (or jdom, dom4j, etc.). Simply select all documentation and annotations nodes to get the text (using XPath expressions) and inspect the parent nodes to see, what's documented or annotated.

0

精彩评论

暂无评论...
验证码 换一张
取 消