aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_sax_parser.hrl
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2017-02-10 12:51:25 +0100
committerLars Thorsen <[email protected]>2017-02-22 10:00:19 +0100
commit760a3fa3c57fa2b56b44a9c25cbab4df0f71987e (patch)
tree0a19021823a0e01ea9af48c94fd44fb094d19ebb /lib/xmerl/src/xmerl_sax_parser.hrl
parent00294041cd3c6f66598a50b57abf27e6a35e277f (diff)
downloadotp-760a3fa3c57fa2b56b44a9c25cbab4df0f71987e.tar.gz
otp-760a3fa3c57fa2b56b44a9c25cbab4df0f71987e.tar.bz2
otp-760a3fa3c57fa2b56b44a9c25cbab4df0f71987e.zip
[xmerl] Fix XML "well-formedness" bug i SAX parser
Changed the XML Sax parser behaviour so it returns an error if there are something more in the file after the the matching document. If one using the xmerl_sax_parser:stream() a rest is allowed which then can be sent to a new call of xmerl_sax_parser:stream() to parse next document. This is done to be compliant with XML conformance tests.
Diffstat (limited to 'lib/xmerl/src/xmerl_sax_parser.hrl')
-rw-r--r--lib/xmerl/src/xmerl_sax_parser.hrl9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/xmerl/src/xmerl_sax_parser.hrl b/lib/xmerl/src/xmerl_sax_parser.hrl
index 932ab0cec5..7f9bf6c4d3 100644
--- a/lib/xmerl/src/xmerl_sax_parser.hrl
+++ b/lib/xmerl/src/xmerl_sax_parser.hrl
@@ -88,14 +88,7 @@
current_location, % Location of the currently parsed XML entity
entity, % Parsed XML entity
skip_external_dtd = false,% If true the external DTD is skipped during parsing
- input_type % Source type: file | stream.
- % This field is a preparation for an fix in R17 of a bug in
- % the conformance against the standard.
- % Today a file which contains two XML documents will be considered
- % well-formed and the second is placed in the rest part of the
- % return tuple, according to the conformance tests this should fail.
- % In the future this will fail if xmerl_sax_aprser:file/2 is used but
- % left to the user in the xmerl_sax_aprser:stream/2 case.
+ input_type % Source type: file | stream
}).