clarkns

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2020 License: BSD-2-Clause Imports: 3 Imported by: 0

README

mellium.im/clarkns

Issue Tracker GoDoc Chat License Build Status

Buy Me A Coffee Support Me

An API for parsing Clark Notation into XML names in Go.

To use it in your project, import it like so:

import "mellium.im/clarkns"

If you'd like to contribute to the project, see CONTRIBUTING.md.

License

The package may be used under the terms of the BSD 2-Clause License a copy of which may be found in the LICENSE file.

Unless you explicitly state otherwise, any contribution submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

Documentation

Overview

Package clarkns implements Clark Notation for XML.

For more information see http://www.jclark.com/xml/xmlns.htm

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnclosedNS = errors.New("clarkns: no namespace closing bracket found")
)

Errors returned by methods and functions in this package.

Functions

func Name

func Name(s string) (xml.Name, error)

Name parses the provided XML name from Clark notation. For example the string "{http://www.cars.com/xml}part" would result in a local name of "part" and a namespace of "http://www.cars.com/xml"

Name does not enforce XML name constraints and there is no guarantee that the returned xml.Name is valid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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