tommysiu / beanio

Automatically exported from code.google.com/p/beanio
Apache License 2.0
0 stars 0 forks source link

BeanIO completes the parsing of XML file even though the input file contains invalid/unexpected tags,should throw an error #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?  If applicable, please provide a
mapping configuration and sample record input to recreate the problem.

1.Upload a xml file to parse using beanIO and to construct the object

2.XML file should contain one or more unexpected tag/s which are not defined in 
the expected layout (beanIo configuration file).

3.While parsing, the parser will ignore the unexpected xml tags and will 
complete the parsing successfully without failure.

What is the expected output? What do you see instead?

The parser should throw an error if there is unexpected or invalid tag is 
included in the XML input file.

What version of BeanIO are you using? What JDK version?

v2.0

Please provide any additional information below.

We are parsing the ISO20020 format XML and importing one or more payments 
present in the input file. The file may contain unexpected tags which are 
invalid or not part of the ISO20020 standard format xml.

Original issue reported on code.google.com by patilash...@gmail.com on 6 Oct 2014 at 10:54

GoogleCodeExporter commented 8 years ago
BeanIO is not meant to be a validating XML parser.  This is clearly stated in 
the reference guide.  There are plenty of other open source frameworks that can 
be used to validate XML against a schema before file processing.

Original comment by kevin.s...@gmail.com on 5 Nov 2014 at 2:13