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

Method SelectElement

query.go:19–21  ·  view source on GitHub ↗

SelectElement finds child elements with the specified name.

(name string)

Source from the content-addressed store, hash-verified

17
18// SelectElement finds child elements with the specified name.
19func (n *Node) SelectElement(name string) *Node {
20 return FindOne(n, name)
21}
22
23// SelectAttr returns the attribute value with the specified name.
24func (n *Node) SelectAttr(name string) string {

Callers 3

ExampleFunction · 0.80
TestAddImmediateSiblingFunction · 0.80
TestSelectElementFunction · 0.80

Calls 1

FindOneFunction · 0.85

Tested by 3

ExampleFunction · 0.64
TestAddImmediateSiblingFunction · 0.64
TestSelectElementFunction · 0.64