I use castor-1.0M3-xml.jar.
I have an xml mapping file. Am trying to Unmarshal the XML stream which
can contain additional attributes/elements. I would like to ignore these.
Setting setIgnoreExtraAttributes/Elements didn't help.

I still got the following error for additional attribute in the XML input stream
to be unmarshalled:
org.xml.sax.SAXException: unable to find FieldDescriptor for 'you' in ClassDescriptor of test-setting{file: [not available]; line: 5; column: 14}

I will NOT have this additional attribute "you" in XML mapping file OR
in the Java object to be unmarshalled.
How do I tell the Unmarshaller to ignore such extra attrs/elements?

-D


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

Reply via email to