Documentation ¶
Index ¶
- func ConcatXML(fileNames []string) ([]byte, [sha1.Size]byte)
- func CopyElement(element *etree.Element) *etree.Element
- func ElementToXML(element *etree.Element) string
- func FindNextSibling(element *etree.Element) *etree.Element
- func HasParentTag(element *etree.Element, parent string) bool
- func XMLToElement(xmlStr string) *etree.Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatXML ¶
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 ¶
CopyElement deep copies the given element, setting it as root to a new document
func ElementToXML ¶
ElementToXML returns the XML string of the given element and all its children.
func FindNextSibling ¶
FindNextSibling returns the next sibling of the given element
func HasParentTag ¶
HasParentTag returns true if this element has at least one ancestor node with the given parent tag name
func XMLToElement ¶
XMLToElement parses the given xml string and returns the root node
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.