|Version 5 (modified by 11 years ago) ( diff ),|
Simple API for XML
Current development version of Matreshka includes implementation of SAX to process XML files.
- Download source code package or checkout source code from repository (be ready to download approximately 95M) svn://adaforge.qtada.com/matreshka/trunk/matreshka
- Run make in root directory to configure system and build libraries.
- Enter examples/sax_events_printer directory.
- Run gprbuild to build demo program.
To play with demo program run
SAX API contains many Ada packages, but not all of them intended to be used by applications. Here is list of packages which application can use:
|XML.SAX.Attributes||Provides set of XML attributes|
|XML.SAX.Content_Handlers||Provides interface type to handle content of the document|
|XML.SAX.Declaration_Handlers||Provides interface type to handle some declarations in the document which XML processor must report to application|
|XML.SAX.Default_Handlers||Provides "default" implementation of all handles, all subprogram do nothing|
|XML.SAX.DTD_Handlers||Provides interface type to handle additional declarations if the document|
|XML.SAX.Entity_Resolvers||Provides interface type to resolve external entities|
|XML.SAX.Error_Handlers||Provides interface type to handle errors in document|
|XML.SAX.Input_Sources||Provides interface type of input source|
|XML.SAX.Input_Sources.Streams||Provides implementation of input source to read data from the Ada stream|
|XML.SAX.Input_Sources.Streams.Files||Provides implementation of input source to read data from files|
|XML.SAX.Input_Sources.Streams.Sockets||Provides implementation of input source to read data from network socket|
|XML.SAX.Input_Sources.Strings||Provides implementation to process data represented as Universal_String|
|XML.SAX.Lexical_Handlers||Provides interface type to handle some lexical elements in th document|
|XML.SAX.Locators||Provides implementation of the object to retrieve position of current item in the document|
|XML.SAX.Output_Destinations||Not implemented yet|
|XML.SAX.Parse_Exceptions||Provides implementation of object to represent errors in the document|
|XML.SAX.Pretty_Writers||Provides implementation of SAX writer to output XML. Not implemented yet|
|XML.SAX.Readers||Provides interface type of SAX reader|
|XML.SAX.Simple_Readers||Provides simple implementation SAX reader. It supports namespaces and partially supports validation|
Other packages are part of the implementation and must not be used by the application.