1use crate::attributes::AttributeReader;
2
3#[derive(Debug, Clone, PartialEq)]
4pub enum Event<'a> {
5 Declaration {
6 attrs: AttributeReader<'a>,
7 },
8 ProcessingInstruction {
9 name: &'a str,
10 attrs: AttributeReader<'a>,
11 },
12 Dtd {
13 content: &'a str,
14 },
15 CDATA {
16 data: &'a [u8],
17 },
18 Comment {
19 content: &'a str,
20 },
21 StartElement {
22 name: &'a str,
23 attrs: AttributeReader<'a>,
24 },
25 Text {
26 content: &'a str,
27 },
28 EndElement {
29 name: &'a str,
30 },
31 EndOfFile,
32}