I found that only the first one groupid from complexType choice is unmarshalled well. But I do not know how to generate java classes for this schema in order to avoid this problem. Thanks in advance,
Werner Guttmann wrote: > > Just looking at some XML schema artifacts, it looks like <descripcion> > cannot be of type text in this context of the sample message. > > Drilling down from <mensajeSalida/respuesta/Respuesta> in your case, > you'll find that through the group reference to the group definition > > resultadoValidarFirma > > there#s a 'descripcion' element, but not of type 'xs:string'. I hope > this helps. > > Regards > Werner > > > Paco Sanchez wrote: >> Hi , >> I've generated the java classes from one xsd using the ant task. I've I >> use >> the castor-anttask 1.2 with a binding file. When I try to unmarshall some >> xml I get the error >> >> "Illegal Text data found as child of: descripcion value "Proceso >> terminado correctamente" >> >> I've attached the xsd, the binding file and one xml sample file. >> >> Thanks in advance, >> >> http://www.nabble.com/file/p18524517/ws.xsd ws.xsd >> http://www.nabble.com/file/p18524517/binding-firma.xml binding-firma.xml >> http://www.nabble.com/file/p18524517/MensajeSalidaEjemplo.xml >> MensajeSalidaEjemplo.xml >> >> >> > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > > -- View this message in context: http://www.nabble.com/Illegal-Text-data-found-as-child-of%3A-tp18524517p18528164.html Sent from the Castor - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

