Changes between Version 107 and Version 108 of DASISH/XSD and XML


Ignore:
Timestamp:
08/23/13 20:26:54 (11 years ago)
Author:
sroth
Comment:

Added comment regarding issue section: "Possible namespace pollution"

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v107 v108  
    524524when a jaxb root node is required, such as in the rest interface. A work around has been added
    525525which makes it clear where the issue is and why the ObjectFactory is required, but this needs to
    526 be replaced when the schema is updated."
     526be replaced when the schema is updated."[[BR]]
     527[[BR]]
     528''Stephanie:'' If indeed, the issue lies with the plural forms of complexType names (used for lists of resources) in the schema, we think that, principally, the plural forms can - and should - be replaced more or less immediately, e.g. by adding the suffix "{{{List}}}" or "{{{Collection}}}" instead of plural "s". For instance, the serialized xml output could then match the following snippet
     529{{{
     530<annotationCollection>
     531   <annotations>
     532      <annotation>
     533         <!-- elements of annotation -->
     534      </annotation>
     535   </annotations>
     536</annotationCollection>
     537}}}
     538 
     539By the way, speaking of diverse "JAXB plural issues", there were some hints on the web regarding (inline and external) Java binding customization for JAXB, - it might be that this would also be a viable solution approach. Maybe this thread is worth checking as well: http://stackoverflow.com/questions/11943487/please-advise-the-best-pattern-for-serialising-jaxb-lists?
     540
     541As regards all future schema updates, please make sure to remember to update all available scenario xml documents on trac.clarin.eu accordingly, and preferably, with as little delay as possible. It might also be a good idea to validate all of these documents against the revised schema with a reliable XML parser like e.g. the Xerces-J XML parser. Also, if you like, you can check by validating some of our current "real-life" mock xml documents that we have been using recently for client development ([source:DASISH/t5.6/client/trunk/chrome/markingcollection/content/markingcollection/annotator-service/test/mockjax/mocks]).
    527542
    528543=== Resolution ===