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):
--
View this message in context:
http://www.nabble.com/Illegal-Text-data-found-as-child-problem---test-case-tp18631484p18631484.html
Sent from the Castor - User mailing list archive at Nabble.com.