Namespace: Lisa.Modules.DataSources.Domain.Services
The IDataSource parser interface is used by some implementations of the IDataSource interface, such as the HTTPDataSource. It allows users to specify how they want the data to be handled. The HTTPDataSource is a generic HTTP datasource, which then uses the selected IDataSourceParser implementation to parse that data and return it according to the selected IDataSourceParser. Veva includes some IDataSourceParser implemententations, such as the HTMLParser which can be used for generic Web scraping, the XMLParser which is used to read data from XML based HTTP datasources, the RSSParser which reads items from standard RSS XML feeds via HTTP and then there are two JSON parsers available as well.
An example of a IDataSourceParser implementation could be a parser which reads data from a REST service via HTTP and performs some data manipulation/calculations and then generates a DataSourceItemsResult object with the calculated data, for display.