Re: [Simple-support] about Class Type sensing
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-12-27 00:32:54
|
Use the @ElementUnion or @ElementListUnion to process ANY. --- On Wed, 26/12/12, Jaewoo Lee <dl...@gm...> wrote: > From: Jaewoo Lee <dl...@gm...> > Subject: [Simple-support] about Class Type sensing > To: sim...@li... > Received: Wednesday, 26 December, 2012, 1:11 AM > 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 schemabut > "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. > > -----Inline Attachment Follows----- > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. > Free Trial > Remotely access PCs and mobile devices and provide instant > support > Improve your efficiency, and focus on delivering more > value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > -----Inline Attachment Follows----- > > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |