Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
SAXReader.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/DataExchange/StructuredStreamEvents/IConsumer.h"
#include "Stroika/Foundation/DataExchange/XML/Common.h"
#include "Stroika/Foundation/DataExchange/XML/Schema.h"
#include "Stroika/Foundation/Execution/ProgressMonitor.h"
#include "Stroika/Foundation/Streams/InputStream.h"
#include "SAXReader.inl"

Go to the source code of this file.

Namespaces

namespace  Stroika::Foundation
 
namespace  Stroika::Foundation::DataExchange
 

Functions

void Stroika::Foundation::DataExchange::XML::SAXParse (const Providers::ISAXProvider &saxProvider, const Streams::InputStream::Ptr< byte > &in, StructuredStreamEvents::IConsumer *callback=nullptr, const Schema::Ptr &schema=nullptr, Execution::ProgressMonitor::Updater progress=nullptr)
 

Function Documentation

◆ SAXParse()

void Stroika::Foundation::DataExchange::XML::SAXParse ( const Providers::ISAXProvider &  saxProvider,
const Streams::InputStream::Ptr< byte > &  in,
StructuredStreamEvents::IConsumer callback = nullptr,
const Schema::Ptr schema = nullptr,
Execution::ProgressMonitor::Updater  progress = nullptr 
)

Parse will throw an exception if it encounters any errors parsing.

See also
ObjectReaderRegistry for examples of one way to use this
Note
though we support using incompatible schema/saxProvider pairs, doing so incurs a significant performance penalty.

Definition at line 45 of file SAXReader.cpp.