how to decode this xml
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint>oss-cn-hangzhou</LocationConstraint>
my code is like this:
type BucketLocation struct {
LocationConstraint string `xml:"LocationConstraint"`
}
v := &BucketLocation{}
xml.Unmarshal(xml_content, v)
but it does not work.