MCPcopy Create free account

hub / github.com/beevik/etree / functions

Functions270 in github.com/beevik/etree

↓ 1 callersMethodIndentWithSettings
IndentWithSettings modifies the element and its child tree by inserting character data tokens containing newlines and indentation. The behavior of the
etree.go:1241
↓ 1 callersMethodIsCData
IsCData returns true if this CharData token is contains a CDATA section. It returns false if the CharData token contains simple text.
etree.go:1613
↓ 1 callersFunctionNewCData
NewCData creates an unparented XML character CDATA section with 'data' as its content.
etree.go:1548
↓ 1 callersFunctionNewDocumentWithRoot
NewDocumentWithRoot creates an XML document and sets the element 'e' as its root element. If the element 'e' is already part of another document, it i
etree.go:308
↓ 1 callersFunctionNewText
NewText creates an unparented CharData token containing simple text data.
etree.go:1542
↓ 1 callersMethodNextSibling
NextSibling returns this element's next sibling element. It returns nil if there is no next sibling element.
etree.go:1351
↓ 1 callersMethodNotNil
NotNil returns the receiver element if it isn't nil; otherwise, it returns an unparented element with an empty string tag. This function simplifies th
etree.go:1139
↓ 1 callersMethodPeekFinalize
()
helpers.go:179
↓ 1 callersMethodPeekPrepare
(offset int64, maxLen int)
helpers.go:170
↓ 1 callersMethodPrevSibling
PrevSibling returns this element's preceding sibling element. It returns nil if there is no preceding sibling element.
etree.go:1365
↓ 1 callersMethodReindexChildren
ReindexChildren recalculates the index values of the element's child tokens. This is necessary only if you have manually manipulated the element's `Ch
etree.go:625
↓ 1 callersMethodSelectAttr
SelectAttr finds an element attribute matching the requested 'key' and, if found, returns a pointer to the matching attribute. The function returns ni
etree.go:1010
↓ 1 callersMethodSetData
SetData modifies the content of the CharData token. In the case of a CharData token containing simple text, the simple text is modified. In the case o
etree.go:1602
↓ 1 callersMethodSetTail
SetTail replaces all character data immediately following the element's end tag with the requested string.
etree.go:694
↓ 1 callersMethodSortAttrs
SortAttrs sorts this element's attributes lexicographically by key.
etree.go:1486
↓ 1 callersMethodTail
Tail returns all character data immediately following the element's end tag.
etree.go:669
↓ 1 callersMethodWriteToBytes
WriteToBytes serializes this document into a slice of bytes.
etree.go:467
↓ 1 callersMethodautoClose
autoClose analyzes the stack's top element and the current token to decide whether the top element should be closed.
etree.go:888
↓ 1 callersFunctioncheckBoolEq
(t *testing.T, got, want bool)
etree_test.go:56
↓ 1 callersFunctioncheckElementEq
(t *testing.T, got, want *Element)
etree_test.go:63
↓ 1 callersFunctioncheckStrBinaryEq
(t *testing.T, got, want string)
etree_test.go:42
↓ 1 callersMethoddup
dup duplicates the element.
etree.go:1333
↓ 1 callersMethodeval
eval evaluates the current path node by applying the remaining path's selector rules against the node's element, yielding results via iterator. Return
path.go:197
↓ 1 callersFunctionfail
(t *testing.T, test test)
path_test.go:204
↓ 1 callersMethodfill
()
helpers.go:184
↓ 1 callersMethodfindDefaultNamespaceURI
findDefaultNamespaceURI finds the default namespace URI of the element.
etree.go:598
↓ 1 callersMethodfindTermCharDataIndex
findTermCharDataIndex finds the index of the first child token that isn't a CharData token. It starts from the requested start index.
etree.go:752
↓ 1 callersMethodgrow
()
helpers.go:69
↓ 1 callersFunctionindentCRLF
indentCRLF returns a CRLF newline followed by n copies of the first non-CRLF character in the source string.
helpers.go:278
↓ 1 callersFunctionindentLF
indentLF returns a LF newline followed by n copies of the first non-LF character in the source string.
helpers.go:291
↓ 1 callersFunctionisDirectiveBalanced
isDirectiveBalanced returns true if the interpreted portion of an XML directive's contents may be enclosed by "<!" and ">" without changing the extent
helpers.go:470
↓ 1 callersFunctionisInCharacterRange
(r rune)
helpers.go:501
↓ 1 callersFunctionisInteger
isInteger returns true if the string s contains an integer.
helpers.go:314
↓ 1 callersFunctionnestedXML
(depth int)
etree_test.go:2166
↓ 1 callersFunctionnewFilterAttr
(str string)
path.go:491
↓ 1 callersFunctionnewFilterAttrVal
(str, value string)
path.go:514
↓ 1 callersFunctionnewFilterChild
(str string)
path.go:576
↓ 1 callersFunctionnewFilterChildText
(str, text string)
path.go:600
↓ 1 callersFunctionnewFilterFunc
(fn func(e *Element) string)
path.go:537
↓ 1 callersFunctionnewFilterFuncVal
(fn func(e *Element) string, value string)
path.go:557
↓ 1 callersFunctionnewFilterPos
(pos int)
path.go:468
↓ 1 callersFunctionnewPather
newPather creates a new pather instance.
path.go:185
↓ 1 callersFunctionnewSelectChildrenByTag
(path string)
path.go:449
↓ 1 callersFunctionnewXmlPeekReader
(r io.Reader)
helpers.go:128
↓ 1 callersFunctionnewXmlSimpleReader
(r io.Reader)
helpers.go:99
↓ 1 callersFunctionnewXmlWriter
(w io.Writer)
helpers.go:228
↓ 1 callersFunctionnextIndex
nextIndex returns the index of the next occurrence of byte ch in s, starting from offset. It returns -1 if the byte is not found.
helpers.go:304
↓ 1 callersMethodparseFilter
parseFilter parses a path filter contained within [brackets].
path.go:318
↓ 1 callersMethodparsePath
parsePath parses an XPath-like string describing a path through an element tree and returns a slice of segment descriptors.
path.go:227
↓ 1 callersMethodparseSegment
parseSegment parses a path segment between / characters.
path.go:272
↓ 1 callersMethodparseSelector
parseSelector parses a selector at the start of a path segment.
path.go:294
↓ 1 callersMethodpush
(value E)
helpers.go:21
↓ 1 callersFunctionsanitizeCData
sanitizeCData writes the sanitized contents of a CDATA section to the writer. XML provides no way to escape the "]]>" sequence within a CDATA section,
helpers.go:390
↓ 1 callersFunctionsanitizeComment
sanitizeComment writes the sanitized contents of a comment to the writer. An XML comment may not contain the string "--", and it may not end with a '-
helpers.go:407
↓ 1 callersFunctionsanitizeDirective
sanitizeDirective writes the sanitized contents of an XML directive to the writer.
helpers.go:445
↓ 1 callersFunctionsanitizeProcInst
sanitizeProcInst writes the contents of a sanitized processing instruction to the writer. XML provides no way to escape the "?>" sequence within a pro
helpers.go:430
↓ 1 callersFunctionsplitPath
(path string)
path.go:251
↓ 1 callersMethodstripIndent
stripIndent removes any previously inserted indentation.
etree.go:1292
↓ 1 callersMethodstripTrailingWhitespace
stripTrailingWhitespace removes any trailing whitespace CharData tokens from the element's children.
etree.go:1323
MethodBytes
()
helpers.go:103
MethodBytes
()
helpers.go:142
MethodCopy
Copy returns a recursive, deep copy of the document.
etree.go:315
FunctionExampleDocument_creating
Create an etree Document, add XML entities to it, and serialize it to stdout.
example_test.go:11
FunctionExampleDocument_reading
()
example_test.go:37
FunctionExamplePath
()
example_test.go:44
MethodIndex
Index returns the index of this CharData token within its parent element's list of child tokens. If this CharData token has no parent, then the functi
etree.go:1631
MethodIndex
Index returns the index of this Comment token within its parent element's list of child tokens. If this Comment token has no parent, then the function
etree.go:1714
MethodIndex
Index returns the index of this Directive token within its parent element's list of child tokens. If this Directive token has no parent, then the func
etree.go:1779
MethodIndex
Index returns the index of this ProcInst token within its parent element's list of child tokens. If this ProcInst token has no parent, then the functi
etree.go:1847
MethodInsertChild
InsertChild inserts the token 't' into this element's list of children just before the element's existing child token 'ex'. If the existing element 'e
etree.go:808
MethodNamespaceURI
NamespaceURI returns the XML namespace URI associated with the element. If the element is part of the XML default namespace, NamespaceURI returns the
etree.go:574
FunctionNewCharData
NewCharData creates an unparented CharData token containing simple text data. Deprecated: NewCharData is deprecated. Instead, use NewText, which does
etree.go:1557
FunctionNewComment
NewComment creates an unparented comment token.
etree.go:1674
FunctionNewDirective
NewDirective creates an unparented XML directive token.
etree.go:1737
FunctionNewProcInst
NewProcInst creates an unparented XML processing instruction.
etree.go:1802
MethodParent
Parent returns this CharData token's parent element, or nil if it has no parent.
etree.go:1624
MethodParent
Parent returns comment token's parent element, or nil if it has no parent.
etree.go:1707
MethodParent
Parent returns directive token's parent element, or nil if it has no parent.
etree.go:1772
MethodParent
Parent returns processing instruction token's parent element, or nil if it has no parent.
etree.go:1840
MethodRead
(p []byte)
helpers.go:107
MethodRead
(p []byte)
helpers.go:146
MethodRead
(p []byte)
etree_test.go:456
FunctionTestAbsolutePath
(t *testing.T)
path_test.go:209
FunctionTestAddChild
(t *testing.T)
etree_test.go:1106
FunctionTestAttrParent
(t *testing.T)
etree_test.go:1630
FunctionTestCanonical
(t *testing.T)
etree_test.go:848
FunctionTestCdata
(t *testing.T)
etree_test.go:1080
FunctionTestCharData
(t *testing.T)
etree_test.go:1223
FunctionTestCharsetReaderDefaultSetting
(t *testing.T)
etree_test.go:1204
FunctionTestContinuations
(t *testing.T)
etree_test.go:2064
FunctionTestCopy
(t *testing.T)
etree_test.go:885
FunctionTestDefaultNamespaceURI
(t *testing.T)
etree_test.go:1657
FunctionTestDocument
(t *testing.T)
etree_test.go:95
FunctionTestDocumentCharsetReader
(t *testing.T)
etree_test.go:417
FunctionTestDocumentReadHTMLAutoClose
(t *testing.T)
etree_test.go:519
FunctionTestDocumentReadHTMLEntities
(t *testing.T)
etree_test.go:498
FunctionTestDocumentReadPermissive
(t *testing.T)
etree_test.go:469
FunctionTestEmbeddedComment
(t *testing.T)
etree_test.go:485
FunctionTestEscapeCodes
(t *testing.T)
etree_test.go:558
FunctionTestFindElementsSeq
(t *testing.T)
etree_test.go:284
← previousnext →101–200 of 270, ranked by callers