1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 15:34:59 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/JSSpecCompiler/Parser/XMLUtils.h
2024-02-08 07:05:13 -07:00

22 lines
523 B
C++

/*
* Copyright (c) 2023, Dan Klishch <danilklishch@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/StringView.h>
#include <LibXML/Forward.h>
namespace JSSpecCompiler {
bool contains_empty_text(XML::Node const* node);
Optional<StringView> get_attribute_by_name(XML::Node const* node, StringView attribute_name);
Optional<StringView> get_text_contents(XML::Node const* node);
Optional<XML::Node const*> get_single_child_with_tag(XML::Node const* element, StringView tag_name);
}