Parsing wsdl and xsd
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.
精彩评论