aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_xml.erl
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2015-06-08 14:37:35 +0200
committerHenrik Nord <[email protected]>2015-06-08 14:39:30 +0200
commitf1dede329de90e4805cd21a43bb5b19e288c81a3 (patch)
treeaab920bd21326f2df820c9c6499d1dcfed2d208b /lib/xmerl/src/xmerl_xml.erl
parentc825356561bfcb4447cb4298da353244c465d3b3 (diff)
parentbca6864c181eb8c14a0b8e47afb3dd6206e6ae7c (diff)
downloadotp-f1dede329de90e4805cd21a43bb5b19e288c81a3.tar.gz
otp-f1dede329de90e4805cd21a43bb5b19e288c81a3.tar.bz2
otp-f1dede329de90e4805cd21a43bb5b19e288c81a3.zip
Merge branch 'richcarl/shut-up-xmerl'
* richcarl/shut-up-xmerl: Stop xmerl printing to stdout OTP-12810
Diffstat (limited to 'lib/xmerl/src/xmerl_xml.erl')
-rw-r--r--lib/xmerl/src/xmerl_xml.erl7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/xmerl/src/xmerl_xml.erl b/lib/xmerl/src/xmerl_xml.erl
index 702a654629..3354592cf1 100644
--- a/lib/xmerl/src/xmerl_xml.erl
+++ b/lib/xmerl/src/xmerl_xml.erl
@@ -31,6 +31,7 @@
-import(xmerl_lib, [markup/3, empty_tag/2, export_text/1]).
-include("xmerl.hrl").
+-include("xmerl_internal.hrl").
'#xml-inheritance#'() -> [].
@@ -39,7 +40,7 @@
%% The '#text#' function is called for every text segment.
'#text#'(Text) ->
-%io:format("Text=~p~n",[Text]),
+%?dbg("Text=~p~n",[Text]),
export_text(Text).
@@ -55,8 +56,8 @@
%% The '#element#' function is the default handler for XML elements.
'#element#'(Tag, [], Attrs, _Parents, _E) ->
-%io:format("Empty Tag=~p~n",[Tag]),
+%?dbg("Empty Tag=~p~n",[Tag]),
empty_tag(Tag, Attrs);
'#element#'(Tag, Data, Attrs, _Parents, _E) ->
-%io:format("Tag=~p~n",[Tag]),
+%?dbg("Tag=~p~n",[Tag]),
markup(Tag, Attrs, Data).