xml

package
v1.173.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func StripLeadingXMLHeaderComment(data []byte) []byte

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

func UnmarshallXML(data []byte, value any) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL