Liquid XML Data Binder 2020
Liquid XML Data Binder (C++, Java, VB6) / Reference / Java / Reference / com.liquid_technologies.ltxmllib18 / SerializationContext / Java getIgnoreUnknownElements - SerializationContext
In This Topic
    Java getIgnoreUnknownElements - SerializationContext
    In This Topic
    boolean getIgnoreUnknownElements()
    void setIgnoreUnknownElements(boolean value)
      Property Description  
        Property Name IgnoreUnknownElements  
        Property Type boolean  
        Accessors Read/Write  
        Description Cause the parser to ignore elements that are not present in the schema.  
        Remarks

    This is mutually exclusive with IgnoreMissingMandatoryElements as you can either ignore what is missing or what is extra, but not both.
    E.g. expect A B C D
    With IgnoreMissingMandatoryElements you can ignore a missing B, i.e. A C D
    With IgnoreUnknownElements you can ignore an unknown C i.e. A C B C D
    But with both set, you cannot process A C D as you don't now know if you have a missing B or if C is an unknown element without looking ahead. I.e. it could be A C D or A C B C D.