| 1 |
#ifndef AWS_COMMON_PRIVATE_XML_PARSER_IMPL_H |
| 2 |
#define AWS_COMMON_PRIVATE_XML_PARSER_IMPL_H |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
#include <aws/common/xml_parser.h> |
| 10 |
|
| 11 |
struct aws_xml_node { |
| 12 |
struct aws_xml_parser *parser; |
| 13 |
struct aws_byte_cursor name; |
| 14 |
struct aws_array_list attributes; |
| 15 |
struct aws_byte_cursor doc_at_body; |
| 16 |
bool processed; |
| 17 |
bool is_empty; |
| 18 |
}; |
| 19 |
|
| 20 |
struct aws_xml_parser { |
| 21 |
struct aws_allocator *allocator; |
| 22 |
struct aws_byte_cursor doc; |
| 23 |
struct aws_array_list callback_stack; |
| 24 |
|
| 25 |
struct aws_xml_attribute attributes[10]; |
| 26 |
|
| 27 |
struct aws_byte_cursor split_scratch[11]; |
| 28 |
size_t max_depth; |
| 29 |
int error; |
| 30 |
}; |
| 31 |
|
| 32 |
#endif |