Back to godoc.org
mellium.im/clarkns

Package clarkns

v0.0.1
Latest Go to latest
Published: Jul 5, 2020 | License: BSD-2-Clause | Module: mellium.im/clarkns

Overview

Package clarkns implements Clark Notation for XML.

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

Index

Package Files

Variables

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

Errors returned by methods and functions in this package.

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.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier