OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   xml mapping

[ Lists Home | Date Index | Thread Index ]

Hi,

I have a question about Castor mapping files:
I have an XML file of the following form:

<a>
  <b> </b>
</a>
<a>
  <c> </c>
</a>
<a>
  <d> </d>
</a>
So actually, the element in <a> is a choice between b, c and d

I have a java class structure like

class Ja {
  Jx x;
}

abstract class Jx{}

class Jb extends Jx{}
class Jc extends Jx{}
class Jd extends Jx{}

I'm trying to map the xml file above to the java structure with one mapping file.
Is this possible, and if yes, how?

Could you help me with this problem?

Regards,

Abed




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS