Documentation
¶
Index ¶
- func AddAttrByXPathFromFile(inputFile, outputFile, expr, value string) error
- func AddAttrByXPathFromString(xmlStr, expr, value string) (string, error)
- func GetAttrByXPathFromFile(inputFile, expr string) (string, error)
- func GetAttrByXPathFromString(xmlStr, expr string) (string, error)
- func RemoveAttrByXPathFromFile(inputFile, outputFile, expr string) error
- func RemoveAttrByXPathFromString(xmlStr, expr string) (string, error)
- func RemoveNodeByXPathFromFile(inputFile, outputFile, expr string) error
- func RemoveNodeByXPathFromString(xmlStr, expr string) (string, error)
- func UpdateAttrByXPathFromFile(inputFile, outputFile, expr, newValue string) error
- func UpdateAttrByXPathFromString(xmlStr, expr, newValue string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAttrByXPathFromFile ¶ added in v0.1.0
AddAttrByXPathFromFile adds an attribute at the XPath location in the XML document.
func AddAttrByXPathFromString ¶ added in v0.1.0
AddAttrByXPathFromString adds an attribute at the XPath location in the given XML string.
func GetAttrByXPathFromFile ¶ added in v0.1.0
GetAttrByXPathFromFile retrieves the value of an attribute at the specified XPath in the XML document.
func GetAttrByXPathFromString ¶ added in v0.1.0
GetAttrByXPathFromString retrieves the value of an attribute at the specified XPath in the given XML string.
func RemoveAttrByXPathFromFile ¶ added in v0.1.0
RemoveAttrByXPathFromFile removes an attribute at the specified XPath from the XML document.
func RemoveAttrByXPathFromString ¶ added in v0.1.0
RemoveAttrByXPathFromString removes an attribute at the specified XPath from the given XML string.
func RemoveNodeByXPathFromFile ¶ added in v0.1.0
RemoveNodeByXPathFromFile removes an attribute at the specified XPath from the XML document.
func RemoveNodeByXPathFromString ¶ added in v0.1.0
RemoveNodeByXPathFromString removes an attribute at the specified XPath from the given XML string.
func UpdateAttrByXPathFromFile ¶ added in v0.1.0
UpdateAttrByXPathFromFile updates the value of an attribute at the specified XPath in the XML document.
func UpdateAttrByXPathFromString ¶ added in v0.1.0
UpdateAttrByXPathFromString updates the value of an attribute at the specified XPath in the given XML string.
Types ¶
This section is empty.