Example #1
0
func list_Uints(xn *xmlx.Node) (sl []uint64) {
	var v xsdt.UnsignedLong
	vals := xsdt.ListValues(xn.Value)
	sl = make([]uint64, len(vals))
	for i, s := range vals {
		v.Set(s)
		sl[i] = v.N()
	}
	return
}
Example #2
0
func list_Floats(xn *xmlx.Node) (sl []float64) {
	var v xsdt.Double
	vals := xsdt.ListValues(xn.Value)
	sl = make([]float64, len(vals))
	for i, s := range vals {
		v.Set(s)
		sl[i] = v.N()
	}
	return
}
Example #3
0
func list_Bools(xn *xmlx.Node) (sl []bool) {
	var v xsdt.Boolean
	vals := xsdt.ListValues(xn.Value)
	sl = make([]bool, len(vals))
	for i, s := range vals {
		v.Set(s)
		sl[i] = v.B()
	}
	return
}
Example #4
0
func list_Strings(xn *xmlx.Node) []string {
	return xsdt.ListValues(xn.Value)
}