mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-07 16:15:27 +00:00
56a854fe14
* update github.com/docker/cli * update github.com/docker/distribution * update github.com/docker/docker * update github.com/gin-gonic/gin * update github.com/golang-jwt/jwt/v4 * update github.com/golangci/golangci-lint * update github.com/gorilla/securecookie * update github.com/mattn/go-sqlite3 * update github.com/moby/moby * update github.com/prometheus/client_golang * update github.com/xanzy/go-gitlab
33 lines
862 B
Go
33 lines
862 B
Go
// Copyright 2009 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package fakexml
|
|
|
|
// References:
|
|
// Annotated XML spec: https://www.xml.com/axml/testaxml.htm
|
|
// XML name spaces: https://www.w3.org/TR/REC-xml-names/
|
|
|
|
// TODO(rsc):
|
|
// Test error handling.
|
|
|
|
// A Name represents an XML name (Local) annotated
|
|
// with a name space identifier (Space).
|
|
// In tokens returned by Decoder.Token, the Space identifier
|
|
// is given as a canonical URL, not the short prefix used
|
|
// in the document being parsed.
|
|
type Name struct {
|
|
Space, Local string
|
|
}
|
|
|
|
// An Attr represents an attribute in an XML element (Name=Value).
|
|
type Attr struct {
|
|
Name Name
|
|
Value string
|
|
}
|
|
|
|
// A StartElement represents an XML start element.
|
|
type StartElement struct {
|
|
Name Name
|
|
Attr []Attr
|
|
}
|