MCPcopy Create free account
hub / github.com/antchfx/xmlquery / newXMLName

Function newXMLName

node.go:119–129  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

117}
118
119func newXMLName(name string) xml.Name {
120 if i := strings.IndexByte(name, ':'); i > 0 {
121 return xml.Name{
122 Space: name[:i],
123 Local: name[i+1:],
124 }
125 }
126 return xml.Name{
127 Local: name,
128 }
129}
130
131func (n *Node) Level() int {
132 return n.level

Callers 5

SelectAttrMethod · 0.85
AddAttrFunction · 0.85
HasAttrMethod · 0.85
SetAttrMethod · 0.85
RemoveAttrMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…