There are some ra.xml files, they are 1.5/1.6 version, defined by xsd or DTD, some
properties defined in annotation in the class and overrided in the xml, and maybe it use
default namespace (see JBMETA-198/199)
So how we do it by using parser and metadata class?
My idea is like this:
1. parse it by the newest version metadata class and xsd file
2. got exception, try dtd file
3. still got exception, try default namespace, if still error, return can't pase
4. check the version of pasered metadata, cast to right version
5. if define metadataComplete attibute, reflection class and get annotation, and merge
metadata information
Do you think this is reasonable processing?
Thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236915#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...