package main import ( "github.com/ECUST-XX/xml" ) type xmls struct { Text string `xml:",chardata"` Version string `xml:"comment"` SuperMaps SuperMaps `xml:"superMaps"` } type SuperMaps struct { XMLName xml.Name `xml:"superMaps"` Text string `xml:",comment"` Maps []Maps `xml:"maps"` } type Maps struct { Text string `xml:",chardata"` ID string `xml:"id,attr"` Name string `xml:"name,attr"` X string `xml:"x,attr"` Y string `xml:"y,attr"` // Galaxy string `xml:"galaxy,attr"` }