func (ns *Namespace) Register(uri, prefix string) {
	if !IsValidSchemaURI(uri) {
		panic(errgo.Newf("cannot register invalid URI %q (prefix %q)", uri, prefix))
	}
	if !IsValidPrefix(prefix) {
		panic(errgo.Newf("cannot register invalid prefix %q for URI %q", prefix, uri))
	}
	if _, ok := ns.uriToPrefix[uri]; !ok {
		ns.uriToPrefix[uri] = prefix
	}
}
// Register registers the given URI and associates it
// with the given prefix. If the URI has already been registered,
// this is a no-op.
Register registers the given URI and associates it
with the given prefix. If the URI has already been registered,
this is a no-op.
// Register registers the given URI and associates it // with the given prefix . If the URI has already been registered // this is a no - op .
func (ns *Namespace) Register(uri, prefix string) {
	if !IsValidSchemaURI(uri) {
		panic(errgo.Newf("cannot register invalid URI %q (prefix %q)", uri, prefix))
	}
	if !IsValidPrefix(prefix) {
		panic(errgo.Newf("cannot register invalid prefix %q for URI %q", prefix, uri))
	}
	if _, ok := ns.uriToPrefix[uri]; !ok {
		ns.uriToPrefix[uri] = prefix
	}
}
func ( ns * Namespace ) Register ( uri , prefix string ) { if ! IsValidSchemaURI ( uri ) { panic ( errgo . Newf ( " " , uri , prefix ) ) } if ! IsValidPrefix ( prefix ) { panic ( errgo . Newf ( " " , prefix , uri ) ) } if _ , ok := ns . uriToPrefix [ uri ] ; ! ok { ns . uriToPrefix [ uri ] = prefix } }
Register registers the given URI and associates it
with the given prefix.
Register registers the given URI and associates it with the given prefix .