Hi,

somehow it looks like you forgot to include your mapping file (in-line) ?

Werner

GuntherV wrote:
> Hi, 
> I'm having some troubles with the parsing of elements contained in a
> collection.  I've seen many people having similar problems, ...
> 
> Here is a very simple test case.  If a  element has text between its tags
> the parsing fails !  If you skip text between the  tags it works. 
> Anybody any idea how to resolve this issue? 
> 
> TestCastor t = new TestCastor();
> Mapping mapping = new Mapping();      
> mapping.loadMapping(new
> InputSource(t.getClass().getResourceAsStream("test.xml")));
> Unmarshaller unmarshaller = new Unmarshaller(mapping);
> unmarshaller.setIgnoreExtraElements(true);
> Lesson xml = (Lesson) unmarshaller.unmarshal(new InputSource(new
> StringReader("Doe")));
> 
> Here is the mapping file (test.xml):
> 
> 
>       
>               
>               
>                       
>               
>       
>       
>       
>               
>               
>                       
>               
>       
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to