Qore xml Module 2.1.0
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

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

Public Attributes

const auto ProviderInfo = ...
 Provider info.
 
const auto ConstructorOptions = ...
 Constructor options.
 
const auto CsvIterationOptionList = ...
 XML iteration option list.
 

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 ( soft< hash< auto > >  where_cond,
soft< hash< auto > >  search_options 
)

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]

AbstractDataProviderRecordIterator SaxDataProvider::SaxDataProvider::searchRecordsImpl ( soft< hash< DataProviderExpression > >  where_cond,
soft< hash< auto > >  search_options 
)

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: