[erlang-questions] Problem with xmerl - xml parsing
Sreenivasan K
sreenivasan.sreeramu@REDACTED
Wed Apr 1 12:30:23 CEST 2009
Hi,
\n problem in xml file .
This is my xml file (test.xml)
<tests>
<test method="one
two
three"></test>
</tests>
This is my erlang file test_parse.erl
-module(test_parse).
-compile(export_all).
start()->
Data=xmerl_scan:file("test.xml",[{encoding,"utf-8"}]),
io:format("~p~n",[Data]).
this is the output i got when i run the program
>test_parse:start().
Out put is the xmlElement recort and for the string in xml file it is
parsing as "one two three" but this i had not expected i
experted \n in between one ,two and three. . And one more point i cant
put \n inside the string if i put \n in between the strings it parser
and displays as "\\n" i need only one \n is there is any way to put \n
inside the string .
More information about the erlang-questions
mailing list