1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Contains low-level parsers of different XML pieces.
//!
//! These parsers are the incremental state machines that the pull
//! [`Reader`](crate::reader::Reader) drives while scanning for the end of a
//! markup construct. Each parser consumes bytes chunk-by-chunk (so that it can
//! be fed across buffer boundaries) and reports the position at which the
//! construct it recognizes ends.
//!
//! Mirrors the `parser` module of quick-xml 0.41.
use crateSyntaxError;
pub use CommentParser;
pub use DtdParser;
pub use ElementParser;
pub use PiParser;
/// Used to decouple reading of data from data source and parsing XML structure from it.
/// This is a state preserved between getting chunks of bytes from the reader.
///
/// This trait is implemented for every parser that processes piece of XML grammar.