MCPcopy Create free account
hub / github.com/aws/smithy-go / findNamespaces

Method findNamespaces

testing/xml/xmlToStruct.go:108–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106}
107
108func (n *XMLNode) findNamespaces() {
109 ns := map[string]string{}
110 for _, a := range n.Attr {
111 if a.Name.Space == "xmlns" {
112 ns[a.Value] = a.Name.Local
113 }
114 }
115
116 n.namespaces = ns
117}
118
119func (n *XMLNode) findElem(name string) (string, bool) {
120 for node := n; node != nil; node = node.parent {

Callers 1

XMLToStructFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected