From 0bf60208af33bdc2262f9ce3c027d0c97e8cc246 Mon Sep 17 00:00:00 2001 From: Ervin Hegedus Date: Sun, 27 Apr 2025 20:26:09 +0200 Subject: [PATCH] Add explanation Co-authored-by: Max Leske <250711+theseion@users.noreply.github.com> --- src/request_body_processor/xml.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/request_body_processor/xml.cc b/src/request_body_processor/xml.cc index 8114b5b7..4a2f7a12 100644 --- a/src/request_body_processor/xml.cc +++ b/src/request_body_processor/xml.cc @@ -184,6 +184,7 @@ bool XML::init() { m_data.xml_parser_state = std::make_unique(m_transaction); m_data.xml_parser_state->node_depth = 0; m_data.xml_parser_state->currval = ""; + // the XML will contain at least one node, which is the pseudo root node 'xml' m_data.xml_parser_state->currpath = "xml."; }