Files
xmlada/docs/dom/domschemaexample.adb
Emmanuel Briot f69ac02da0 New example for DOM/Schema interaction
git-svn-id: svn+ssh://svn.eu.adacore.com/Dev/importfromcvs/trunk@12324 936e1b1b-40f2-da11-902a-00137254ae57
2006-04-27 13:41:05 +00:00

21 lines
565 B
Ada

with Input_Sources.File; use Input_Sources.File;
with Sax.Readers; use Sax.Readers;
with DOM.Core; use DOM.Core;
with Schema.Dom_Readers; use Schema.Dom_Readers;
procedure DomSchemaExample is
Input : File_Input;
Reader : Schema.Dom_Readers.Tree_Reader;
Doc : Document;
begin
Set_Public_Id (Input, "Preferences file");
Open ("pref.xml", Input);
Set_Feature (Reader, Validation_Feature, False);
Set_Feature (Reader, Namespace_Feature, False);
Parse (Reader, Input);
Doc := Get_Tree (Reader);
end DomSchemaExample;