Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/beevik/etree
/ types & classes
Types & classes
46 in github.com/beevik/etree
⨍
Functions
270
◇
Types & classes
46
↓ 4 callers
TypeAlias
ErrPath
ErrPath is returned by path functions when an invalid etree path is provided.
path.go:96
↓ 1 callers
TypeAlias
errorResult
path_test.go:61
Struct
Attr
An Attr represents a key-value attribute within an XML element.
etree.go:249
Struct
CharData
CharData may be used to represent simple text data or a CDATA section within an XML document. The Data property should never be modified directly; use
etree.go:269
Struct
Comment
A Comment represents an XML comment.
etree.go:277
Struct
Directive
A Directive represents an XML directive.
etree.go:284
Struct
Document
A Document is a container holding a complete XML tree. A document has a single embedded element, which contains zero or more child tokens, one of whi
etree.go:233
Struct
Element
An Element represents an XML element, its attributes, and its child tokens.
etree.go:240
Struct
IndentSettings
IndentSettings determine the behavior of the Document's Indent* functions.
etree.go:146
Struct
Path
* A Path is a string that represents a search path through an etree starting from the document root or an arbitrary element. Paths are used with the E
path.go:91
Struct
ProcInst
A ProcInst represents an XML processing instruction.
etree.go:291
Struct
ReadSettings
ReadSettings determine the default behavior of the Document's ReadFrom* functions.
etree.go:41
Interface
Token
A Token is an interface type used to represent XML elements, character data, CDATA sections, XML comments, XML directives, and XML processing instruct
etree.go:214
Struct
WriteSettings
WriteSettings determine the behavior of the Document's WriteTo* functions.
etree.go:111
Interface
Writer
Writer is the interface that wraps the Write* functions called by each token type's WriteTo function.
etree.go:205
TypeAlias
charDataFlags
charDataFlags are used with CharData tokens to store additional settings.
etree.go:256
Struct
compiler
A compiler generates a compiled path from a path string.
path.go:220
TypeAlias
escapeMode
helpers.go:323
Interface
filter
A filter pares down a list of candidate XML elements based on a path filter in [brackets].
path.go:162
Struct
filterAttr
filterAttr filters the candidate list for elements having the specified attribute.
path.go:487
Struct
filterAttrVal
filterAttrVal filters the candidate list for elements having the specified attribute with the specified value.
path.go:510
Struct
filterChild
filterChild filters the candidate list for elements having a child element with the specified tag.
path.go:572
Struct
filterChildText
filterChildText filters the candidate list for elements having a child element with the specified tag and text.
path.go:596
Struct
filterFunc
filterFunc filters the candidate list for elements satisfying a custom boolean function.
path.go:533
Struct
filterFuncVal
filterFuncVal filters the candidate list for elements containing a value matching the result of a custom function.
path.go:552
Struct
filterPos
filterPos filters the candidate list, keeping only the candidate at the specified index.
path.go:464
FuncType
indentFunc
func(depth int) string
etree.go:183
Struct
lowercaseCharsetReader
etree_test.go:452
Struct
node
A node represents an element and the remaining path segments that should be applied against it by the pather.
path.go:168
Struct
pather
A pather is helper object that traverses an element tree using a Path object. It collects and deduplicates all elements matching the path query.
path.go:176
Struct
queue
helpers.go:37
FuncType
readFunc
func(doc *Document, s string) error
etree_test.go:1977
Struct
segment
A segment is a portion of a path between "/" characters. It contains one selector and zero or more [filters].
path.go:142
Struct
selectChildren
selectChildren selects the element's child elements into the candidate list.
path.go:416
Struct
selectChildrenByTag
selectChildrenByTag selects into the candidate list all child elements of the element having the specified tag.
path.go:445
Struct
selectDescendants
selectDescendants selects all descendant child elements of the element into the candidate list.
path.go:428
Struct
selectParent
selectParent selects the element's parent into the candidate list.
path.go:406
Struct
selectRoot
selectRoot selects the element's root node.
path.go:395
Struct
selectSelf
selectSelf selects the current element into the candidate list.
path.go:388
Interface
selector
A selector selects XML elements for consideration by the path traversal.
path.go:156
Struct
stack
helpers.go:13
Struct
test
path_test.go:56
Struct
xmlPeekReader
xmlPeekReader implements a proxy reader that counts the number of bytes read from its encapsulated reader. It also allows the caller to "peek" at the
helpers.go:117
Interface
xmlReader
xmlReader provides the interface by which an XML byte stream is processed and decoded.
helpers.go:87
Struct
xmlSimpleReader
xmlSimpleReader implements a proxy reader that counts the number of bytes read from its encapsulated reader.
helpers.go:94
Struct
xmlWriter
xmlWriter implements a proxy writer that counts the number of bytes written by its encapsulated writer.
helpers.go:223