1 Reply Latest reply on Jun 11, 2009 8:27 AM by aloubyansky

    multi-version, xsd/dtd, annotation, default namespace parser

    jeff.zhang

      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