DocWire SDK
DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, document analysis. Offline processing possible for security and confidentiality
xml_parser.h
1 /*********************************************************************************************************************************************/
2 /* DocWire SDK: Award-winning modern data processing in C++20. SourceForge Community Choice & Microsoft support. AI-driven processing. */
3 /* Supports nearly 100 data formats, including email boxes and OCR. Boost efficiency in text extraction, web data extraction, data mining, */
4 /* document analysis. Offline processing possible for security and confidentiality */
5 /* */
6 /* Copyright (c) SILVERCODERS Ltd, http://silvercoders.com */
7 /* Project homepage: https://github.com/docwire/docwire */
8 /* */
9 /* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-DocWire-Commercial */
10 /*********************************************************************************************************************************************/
11 
12 #ifndef DOCWIRE_XML_PARSER_H
13 #define DOCWIRE_XML_PARSER_H
14 
15 #include "safety_policy.h"
16 #include "chain_element.h"
17 #include "xml_export.h"
18 
19 namespace docwire
20 {
21 
26 template <safety_policy safety_level = default_safety_level>
27 class DOCWIRE_XML_EXPORT xml_parser : public chain_element
28 {
29 public:
34  continuation operator()(message_ptr msg, const message_callbacks& emit_message) override;
35  bool is_leaf() const override { return false; }
36 };
37 
38 } // namespace docwire
39 
40 #endif // DOCWIRE_XML_PARSER_H
A parser for generic XML documents.
Definition: xml_parser.h:28
bool is_leaf() const override
Check if chain element is a leaf (last element which doesn't produce any messages)....
Definition: xml_parser.h:35
continuation operator()(message_ptr msg, const message_callbacks &emit_message) override
Processes a message in the parsing chain.
The main namespace for the DocWire SDK.
Definition: ai_elements.h:19