/* * Copyright (c) 2022, Ali Mohammad Pur * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include #include namespace XML { struct Attribute { Name name; String value; }; struct Node { struct Text { StringBuilder builder; }; struct Comment { String text; }; struct Element { Name name; HashMap attributes; NonnullOwnPtrVector children; }; bool operator==(Node const&) const; Variant content; Node* parent { nullptr }; }; }