Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package main
import "fmt"
import xmlx ""
var demo = `
func main() {
doc := xmlx.New()
if err := doc.LoadString(demo, nil); err != nil {
coll := doc.SelectNode("", "collection")
// I would expect this to print 2. It prints 3
fmt.Printf("Total: %d\n", len(coll.SelectNodes("", "category")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment