spring-framework / org.springframework.oxm.castor / CastorMarshaller / setIgnoreExtraElements

setIgnoreExtraElements

open fun setIgnoreExtraElements(ignoreExtraElements: Boolean): Unit

Set whether the Castor Unmarshaller should ignore elements that do not match a specific field.

Default is false: Extra elements are flagged as an error.

See Also
org.exolab.castor.xml.Unmarshaller#setIgnoreExtraElements(boolean)