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

Method Prefix

query.go:182–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180}
181
182func (x *NodeNavigator) Prefix() string {
183 if x.NodeType() == xpath.AttributeNode {
184 if x.attr != -1 {
185 return x.curr.Attr[x.attr].Name.Space
186 }
187 return ""
188 }
189 return x.curr.Prefix
190}
191
192func (x *NodeNavigator) NamespaceURL() string {
193 if x.attr != -1 {

Callers

nothing calls this directly

Calls 1

NodeTypeMethod · 0.95

Tested by

no test coverage detected