Documentation
¶
Overview ¶
* Copyright (C) 2020-2026 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripLeadingXMLHeaderComment ¶
StripLeadingXMLHeaderComment removes a generated leading XML comment block when it contains the repository copyright or SPDX header markers.
This is intended for XML-like fixtures or serialised content where an automated header insertion step prepends a licence comment before the real document content. Comments that do not contain the recognised header markers are preserved unchanged.
func UnmarshallXML ¶
UnmarshallXML unmarshals XML bytes into value.
It exists instead of using encoding/xml.Unmarshal directly because the decoder is configured with a charset reader, which allows non-UTF-8 XML encodings to be handled.
Types ¶
This section is empty.