all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
16
Task/XML-Input/Ada/xml-input-5.ada
Normal file
16
Task/XML-Input/Ada/xml-input-5.ada
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
with League.Application;
|
||||
with XML.SAX.Input_Sources.Streams.Files;
|
||||
with XML.SAX.Simple_Readers;
|
||||
|
||||
with Handlers;
|
||||
|
||||
procedure Main is
|
||||
Handler : aliased Handlers.Handler;
|
||||
Input : aliased XML.SAX.Input_Sources.Streams.Files.File_Input_Source;
|
||||
Reader : aliased XML.SAX.Simple_Readers.SAX_Simple_Reader;
|
||||
|
||||
begin
|
||||
Input.Open_By_File_Name (League.Application.Arguments.Element (1));
|
||||
Reader.Set_Content_Handler (Handler'Unchecked_Access);
|
||||
Reader.Parse (Input'Unchecked_Access);
|
||||
end Main;
|
||||
Loading…
Add table
Add a link
Reference in a new issue