allowextra (default no)

For the situation where the XML document has XML elements or attributes that are not needed for assignment to the subfields of an RPG data structure, you can use the allowextra option to indicate whether this is considered an error. XML data is considered to be extra in the following circumstances:

If unexpected XML data is found, and 'allowextra=yes' is not specified, the operation will fail with status 00353 (XML does not match RPG variable).

Warning: At any time, XML attributes for non-data-structure XML elements elements may be subject to interpretation by the RPG runtime. Currently, "fmt" and "adjust" are already being interpreted by the RPG runtime for some target data types. Support for other attributes may be added at any time, possibly even through PTFs. If an attribute is being ignored by option 'allowextra=yes', and that attribute becomes meaningful for the RPG runtime, it may affect the handling of the data.