Documentation
¶
Index ¶
- func AppendElement(parent *etree.Element, el *etree.Element, alternatives ...string)
- func CreateSimpleElementIfNotExists(parent *etree.Element, name string, value string, afterElements ...string) (el *etree.Element, exists bool)
- func InsertElement(parent *etree.Element, el *etree.Element, ...)
- func InsertElementByAttribute(parent *etree.Element, el *etree.Element, attribute string, ...)
- func InsertElementByAttributeNumber(parent *etree.Element, el *etree.Element, attribute string, ...)
- func InsertElementByName(parent *etree.Element, el *etree.Element, alternatives ...string)
- func PrependAttribute(el *etree.Element, name string, value string, after ...string)
- func ReadSimpleElement(parent *etree.Element, name string) (value string, ok bool)
- func RemoveElements(parent *etree.Element, elementNames ...string)
- func SetNonexistentAttr(el *etree.Element, name string, value string) *etree.Attr
- func SetOrCreateSimpleElement(parent *etree.Element, name string, value string, afterElements ...string) *etree.Element
- func SetOrCreateSimpleNumber(parent *etree.Element, name string, value string, afterElements ...string) *etree.Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendElement ¶
func InsertElement ¶
func InsertElementByName ¶
func PrependAttribute ¶
func ReadSimpleElement ¶
func RemoveElements ¶
func SetNonexistentAttr ¶
Sets an attribute value, as long as it's not already set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.