Time for an 2014 update…
This commit is contained in:
parent
372c577f83
commit
09687c4926
2520 changed files with 34227 additions and 7318 deletions
12
Task/XML-Output/Erlang/xml-output.erl
Normal file
12
Task/XML-Output/Erlang/xml-output.erl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
-module( xml_output ).
|
||||
|
||||
-export( [task/0] ).
|
||||
|
||||
-include_lib("xmerl/include/xmerl.hrl").
|
||||
|
||||
task() ->
|
||||
Data = {'CharacterRemarks', [], [{'Character', [{name, X}], [[Y]]} || {X, Y} <- contents()]},
|
||||
lists:flatten( xmerl:export_simple([Data], xmerl_xml) ).
|
||||
|
||||
|
||||
contents() -> [{"April", "Bubbly: I'm > Tam and <= Emily"}, {"Tam O'Shanter", "Burns: \"When chapman billies leave the street ...\""}, {"Emily", "Short & shrift"}].
|
||||
Loading…
Add table
Add a link
Reference in a new issue