File: saxexample_main.adb

package info (click to toggle)
libxmlada 18-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,324 kB
  • sloc: ada: 32,766; makefile: 480; xml: 111; sh: 43; python: 35
file content (24 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--
--  Copyright (C) 2017, AdaCore
--

with Sax.Readers;        use Sax.Readers;
with Input_Sources.File; use Input_Sources.File;
with SaxExample;         use SaxExample;

procedure SaxExample_Main is
   My_Reader : SaxExample.Reader;
   Input     : File_Input;
begin
   Set_Public_Id (Input, "Preferences file");
   Set_System_Id (Input, "pref.xml");
   Open ("pref.xml", Input);

   Set_Feature (My_Reader, Namespace_Prefixes_Feature, False);
   Set_Feature (My_Reader, Namespace_Feature, False);
   Set_Feature (My_Reader, Validation_Feature, False);

   Parse (My_Reader, Input);

   Close (Input);
end SaxExample_Main;