Files
xmlada/docs/schema/schemaexample.adb
Emmanuel Briot 586f1f6005 Add documentation for the schema module
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/importfromcvs/trunk@12018 936e1b1b-40f2-da11-902a-00137254ae57
2004-12-14 17:14:25 +00:00

17 lines
431 B
Ada

with Sax.Readers; use Sax.Readers;
with Schema.Readers; use Schema.Readers;
with Input_Sources.File; use Input_Sources.File;
procedure SchemaExample is
Input : File_Input;
My_Reader : Validating_Reader;
begin
Set_Public_Id (Input, "Preferences file");
Open ("pref.xml", Input);
Set_Feature (My_Reader, Schema_Validation_Feature, True);
Parse (My_Reader, Input);
Close (Input);
end SchemaExample;