Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
xquery
✓ github.com/antchfx/xquery
Parse XML and query with XPath
package main
import (
"fmt"
"strings"
"github.com/antchfx/xquery/xml"
)
func main() {
data := `<root><item>value</item></root>`
root, _ := xmlquery.Parse(strings.NewReader(data))
item := xmlquery.FindOne(root, "//item")
fmt.Println(item.InnerText())
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20180515051857-ad5b8c7a47b0latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.