Qore xml Module 1.8.1
Loading...
Searching...
No Matches
SaxDataProvider::SaxDataProvider Class Reference

Provides a data provider for reading XML files. More...

#include <SaxDataProvider.qc.dox.h>

Inherits DataProvider::AbstractDataProvider.

Public Member Methods

 constructor (*hash< auto > options)
 Creates the object from constructor options.
 
string getName ()
 Returns the object name.
 
private AbstractDataProviderRecordIterator searchRecordsImpl (*hash< DataProviderExpression > where_cond, *hash< auto > search_options)
 Returns an iterator for zero or more records matching the search options. More...
 

Public Attributes

const ProviderInfo
 Provider info.
 
const ConstructorOptions
 Constructor options.
 
const CsvIterationOptionList = keys (ConstructorOptions - ("path", "stream"))
 XML iteration option list.
 

Private Member Methods

AbstractDataProviderRecordIterator searchRecordsImpl (*hash< auto > where_cond, *hash< auto > search_options)
 Returns an iterator for zero or more records matching the search options. More...
 
*hash< string, AbstractDataField > getRecordTypeImpl (*hash< auto > search_options)
 Returns the description of the record type, if any.
 
hash< DataProviderInfo > getStaticInfoImpl ()
 Returns data provider static info.
 

Private Attributes

SaxIteratorWrapper i
 the iterator object
 
string location
 the source location
 

Detailed Description

Provides a data provider for reading XML files.

Supports generic record search operators and options

Note
If the SAX iterator does not return a hash for each iteration, then this data provider will return A hash with the deserialized XML data returned in the data key

Member Function Documentation

◆ searchRecordsImpl() [1/2]

AbstractDataProviderRecordIterator SaxDataProvider::SaxDataProvider::searchRecordsImpl ( *hash< auto >  where_cond,
*hash< auto >  search_options 
)
private

Returns an iterator for zero or more records matching the search options.

Parameters
where_condthe search criteria
search_optionsthe search options after processing by validateSearchOptions()

◆ searchRecordsImpl() [2/2]

private AbstractDataProviderRecordIterator SaxDataProvider::SaxDataProvider::searchRecordsImpl ( *hash< DataProviderExpression >  where_cond,
*hash< auto >  search_options 
)
inline

Returns an iterator for zero or more records matching the search options.

Parameters
where_condthe search criteria
search_optionsthe search options after processing by validateSearchOptions()

The documentation for this class was generated from the following file: