package
0.0.0-20241123141403-e7b9dc6866d0
Repository: https://github.com/unix-world/smartgoext.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
NSBuildParentContext recurses upward from an element in order to build an NSContext for its immediate parent.
NSDetatch makes a copy of the passed element, and declares any namespaces in the passed context onto the new element before returning it.
NSFindIterateChildrenCtx takes an element and its surrounding context, and iterates the children of that element searching for an element matching the passed namespace and tag.
NSFindIterate behaves identically to NSFindIterateCtx, but uses DefaultNSContext as the surrounding context.
NSFindIterateCtx conducts a depth-first traversal searching for elements with the specified tag in the specified namespace.
NSFindOne behaves identically to NSFindOneCtx, but uses DefaultNSContext for context.
NSFindOneChild behaves identically to NSFindOneChildCtx, but uses DefaultNSContext for context.
NSFindOneCtx conducts a depth-first search for the specified element.
NSFindOneCtx conducts a depth-first search for the specified element.
NSIterateChildren iterates the children of an element, invoking the passed handler with each direct child of the element, and the context surrounding that child.
NSSelectOne behaves identically to NSSelectOneCtx, but uses DefaultNSContext as the surrounding context.
NSSelectOneCtx conducts a depth-first search for an element with the specified namespace and tag.
NSTraverse traverses an element tree, invoking the passed handler for each element in the tree.
NSUnmarshalElement unmarshals the passed etree Element into the value pointed to by v using encoding/xml in the context of the passed NSContext.
TransformExcC14n transforms the passed element into xml-exc-c14n form.

# Constants

No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Interfaces

ElementKeeper should be implemented by types which will be passed to UnmarshalElement, but wish to keep a reference.

# Type aliases

NSIterHandler is a function which is invoked with a element and its surrounding NSContext during traversals.
SortedAttrs provides sorting capabilities, compatible with XML C14N, on top of an []etree.Attr.