From 5b2375ff231353c059a340d95b317d998df279fc Mon Sep 17 00:00:00 2001 From: Lars Thorsen Date: Fri, 28 Oct 2011 10:37:49 +0200 Subject: Fix bugs and add a flag to skip comments Add flag {comments, Flag} to xmerl_scan for filtering of comments. Default (true) is that xmlComment records are returned from the scanner and this flag should be set to false if one don't want comments in the output. Fix some bugs to get the test cases to run clean. --- lib/xmerl/include/xmerl.hrl | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/xmerl/include') diff --git a/lib/xmerl/include/xmerl.hrl b/lib/xmerl/include/xmerl.hrl index e75528ae34..3760a5cce0 100644 --- a/lib/xmerl/include/xmerl.hrl +++ b/lib/xmerl/include/xmerl.hrl @@ -156,6 +156,7 @@ declarations = [], % [{Name, Attrs}] doctype_name, doctype_DTD = internal, % internal | DTDId + comments = true, document = false, default_attrs = false, rules, -- cgit v1.2.3