func NewNamespace(uriToPrefix map[string]string) *Namespace {
	ns := &Namespace{
		uriToPrefix: make(map[string]string),
	}
	for uri, prefix := range uriToPrefix {
		ns.Register(uri, prefix)
	}
	return ns
}
// NewNamespace returns a new namespace with the
// given initial contents. It will panic if any of the
// URI keys or their associated prefix are invalid
// (see IsValidSchemaURI and IsValidPrefix).
NewNamespace returns a new namespace with the
given initial contents. It will panic if any of the
URI keys or their associated prefix are invalid
.
// NewNamespace returns a new namespace with the // given initial contents . It will panic if any of the // URI keys or their associated prefix are invalid // ( see IsValidSchemaURI and IsValidPrefix ) .
func NewNamespace(uriToPrefix map[string]string) *Namespace {
	ns := &Namespace{
		uriToPrefix: make(map[string]string),
	}
	for uri, prefix := range uriToPrefix {
		ns.Register(uri, prefix)
	}
	return ns
}
func NewNamespace ( uriToPrefix map [ string ] string ) * Namespace { ns := & Namespace { uriToPrefix : make ( map [ string ] string ) , } for uri , prefix := range uriToPrefix { ns . Register ( uri , prefix ) } return ns }
NewNamespace returns a new namespace with the
given initial contents.
NewNamespace returns a new namespace with the given initial contents .