xmlutils

package
v0.0.0-...-fad53ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatXML

func ConcatXML(fileNames []string) ([]byte, [sha1.Size]byte)

ConcatXML concatenates the XML content of the files given by fileNames into a valid XML by importing all children of the root node into the root node of the first file. This function also returns the sha1sum of the result.

func CopyElement

func CopyElement(element *etree.Element) *etree.Element

CopyElement deep copies the given element, setting it as root to a new document

func ElementToXML

func ElementToXML(element *etree.Element) string

ElementToXML returns the XML string of the given element and all its children.

func FindNextSibling

func FindNextSibling(element *etree.Element) *etree.Element

FindNextSibling returns the next sibling of the given element

func HasParentTag

func HasParentTag(element *etree.Element, parent string) bool

HasParentTag returns true if this element has at least one ancestor node with the given parent tag name

func XMLToElement

func XMLToElement(xmlStr string) *etree.Element

XMLToElement parses the given xml string and returns the root node

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL