Versions in this module Expand all Collapse all v0 v0.1.1 May 2, 2024 v0.1.0 May 2, 2024 Changes in this version + const XMLNSNamespace + const XMLNamespace + var EmptyNSContext = NSContext + var ErrInvalidDefaultNamespace = errors.New("invalid default namespace declaration") + var ErrReservedNamespace = errors.New("disallowed declaration of reserved namespace") + var ErrTraversalHalted = errors.New("traversal halted") + var ErrTraversalLimit = errors.New("traversal limit reached") + func NSDetatch(ctx NSContext, el *etree.Element) (*etree.Element, error) + func NSFindChildrenIterateCtx(ctx NSContext, el *etree.Element, namespace, tag string, handle NSIterHandler) error + func NSFindIterate(el *etree.Element, namespace, tag string, handle NSIterHandler) error + func NSFindIterateCtx(ctx NSContext, el *etree.Element, namespace, tag string, handle NSIterHandler) error + func NSFindOne(el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSFindOneChild(el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSFindOneChildCtx(ctx NSContext, el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSFindOneCtx(ctx NSContext, el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSIterateChildren(ctx NSContext, el *etree.Element, handle NSIterHandler) error + func NSSelectOne(el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSSelectOneCtx(ctx NSContext, el *etree.Element, namespace, tag string) (*etree.Element, error) + func NSTraverse(ctx NSContext, el *etree.Element, handle NSIterHandler) error + func NSUnmarshalElement(ctx NSContext, el *etree.Element, v interface{}) error + func TransformExcC14n(el *etree.Element, inclusiveNamespacesPrefixList string, comments bool) error + type ElementKeeper interface + SetUnderlyingElement func(*etree.Element) + UnderlyingElement func() *etree.Element + type ErrUndeclaredNSPrefix struct + Prefix string + func (e ErrUndeclaredNSPrefix) Error() string + type NSContext struct + func NSBuildParentContext(el *etree.Element) (NSContext, error) + func NewDefaultNSContext() NSContext + func (ctx NSContext) CheckLimit() error + func (ctx NSContext) Copy() NSContext + func (ctx NSContext) LookupPrefix(prefix string) (string, error) + func (ctx NSContext) Prefixes() map[string]string + func (ctx NSContext) SubContext(el *etree.Element) (NSContext, error) + type NSIterHandler func(NSContext, *etree.Element) error + type SortedAttrs []etree.Attr + func (a SortedAttrs) Len() int + func (a SortedAttrs) Less(i, j int) bool + func (a SortedAttrs) Swap(i, j int)