Hi all, I've just finished implementing an XML serializer. I have followed the XML schema specifications carefully, but I've deviated from some parts, particularly the ontology section. In the terms element (defined as <terms> ARCHETYPE_TERM<http://svn.openehr.org/specification/BRANCHES/Release-1.1-candidate/publishing/its/XML-schema/documentation/Archetype.xsd.html_h-47810521.html></terms> [1..*]) found in language_set of term_definitions and constraint_definitions I found the definition of ARCHETYPE_TERM (found here: http://svn.openehr.org/specification/BRANCHES/Release-1.1-candidate/publishing/its/XML-schema/documentation/Archetype.xsd.html_h-47810521.html) to be a little bit strange. You will see that the items element has a hashTableStringString, but I think the entire items element should be replaced with <item> dictionaryItem<http://svn.openehr.org/specification/BRANCHES/Release-1.1-candidate/publishing/its/XML-schema/documentation/Archetype.xsd.html_h776235118.html></item> [1..*] or something similar, since there is no need to have a hashTableStringString when there is only one local definition per at/ac-code.
However, I am not sure if I have followed the specifications correctly in some cases - for example when printing the hashTableStringString in the description part. Have a look at my example below and at the specification and provide me with feedback if something is wrong. If there are many errors, maybe the XML specifications should be clarified ;-) I hope to contribute with the XMLSerializer component to the openEHR Java reference implementation. I also found some other issues in the XML specification, e.g. spelling mistakes etc., which I will provide in another mail. When I went through the specification I started thinking that some things probably could be made a bit more compact. Why not include rm_type_name, node_id/cardinality as attributes in the parent element instead of separate elements. This will make the XML archetypes slightly smaller... Example of openEHR-EHR-OBSERVATION.height.v1 XML: http://www.imt.liu.se/~matfo/openEHR-EHR-OBSERVATION.height.v1.xml ADL: http://www.imt.liu.se/~matfo/openEHR-EHR-OBSERVATION.height.v1.adl Regards, Mattias Forss -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.openehr.org/mailman/private/openehr-technical_lists.openehr.org/attachments/20061116/f0ebd4e6/attachment.html> -------------- next part -------------- _______________________________________________ openEHR-technical mailing list openEHR-technical at openehr.org http://www.chime.ucl.ac.uk/mailman/listinfo/openehr-technical

