Versions in this module Expand all Collapse all v0 v0.5.0 Nov 21, 2024 Changes in this version + func CleanInvalid(xmlStr string) string + func CreateXPath(expr string) (*xpath.Expr, error) + func ElementText(doc *Document, tagName string) (string, error) + func GetByXPath(doc *Document, expr string) ([]*xmlquery.Node, error) + func GetElement(doc *Document, tagName string) *xmlquery.Node + func GetElements(doc *Document, tagName string) []*xmlquery.Node + func ReadObjectFromXML(filePath string, obj interface{}) error + func ToFile(doc *Document, filePath string) error + func ToStr(doc *Document) (string, error) + func TransElements(nodeList []*xmlquery.Node) []*xmlquery.Node + func WriteObjectAsXML(obj interface{}, filePath string) error + type Document struct + Root string + func CreateXML(rootElementName string) *Document + func ParseXML(xmlStr string) (*Document, error) + func ReadXML(filePath string) (*Document, error)