[Simple-support] about Class Type sensing
Brought to you by:
niallg
|
From: Jaewoo L. <dl...@gm...> - 2012-12-26 09:11:47
|
Hi, I'm converting from javax to simple framework.
I have a question about that.
this is original xml source.
--------------------------------------------------------------------
<observation classCode="OBS" moodCode="EVN">
.....
<value xsi:type="CD"...>
</value>
.....
<entryRelationship typeCode="REFR">
<observation classCode="OBS" moodCode="EVN">
<value xsi:type="CE"... />
</observation>
</observation>
----------------------------------------------------------------------
and this is schema source about observation class.
----------------------------------------------------------------------
<xs:complexType name="POCD_MT000040.Observation">
<xs:sequence>
....
<xs:element name="value" type="ANY" minOccurs="0" maxOccurs="unbounded"/>
.....
</xs:sequence>
....
</xs:complexType>
----------------------------------------------------------------------
"value" type is defined as "ANY" type in schema
but "CD" and "CE" classes are sub class of "ANY".
*Q1. *If i define "value" as "ANY" type, is there any way to sense
automatically appropriate its own type, like "CD" or "CE"?
*Q2. *If not, how do i tag their types like that case according their
situation?
Thank you so much for your help.
|