Ummm..what does your mapping file look like?

--Keith

Arthur Zhu wrote:
> 
> Hi,
>   I am new to Castor and have stumbled into what seems to be a "simple"
> problem.
> 
>   I want to unmarshalling some XML data that is like this:
> --------
> <title>
> <langstring xml:lang="en">Title in english</langstring>
> <langstring xml:lang="fr">Title in french</langstring>
> </title>
> ---------
> 
> everytime i want use the unmarshaller, i get an
> "Illegal Text data found as child of: langstring"
> Exception.
> 
> However if I wrapping the title TEXT data in another element, ie <content>
> then i don't get any exceptions:
> 
> -----------
> <title>
> <langstring xml:lang="en"><content>Title in english</content></langstring>
> <langstring xml:lang="fr"><content>Title in french</content></langstring>
> </title>
> ----------
> 
> --------
> I am not in liberty to change the XML spec so I have to find a way to get
> castor to unmarshal properly the above XML snippet or I will have to roll my
> own data-binding code. :(
> 
> Has anyone seen this problem or is this a limition of Castor unmarshalling
> framework?
> 
> Or is there something that I can do with XML mapping to make this work?
> 
> Thanks in advance.
> 
> Arthur.
> ilrn.com
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to