Another little XML tag tweak.
authorChris Jones <chris@cjones.org>
Sun, 16 Dec 2012 19:54:54 -0700
changeset 108 8ec06aff386e
parent 107 3a01bd8e3f8c
child 109 3887d7ad19c1
Another little XML tag tweak.
structs.go
--- a/structs.go	Sun Dec 16 17:10:21 2012 -0700
+++ b/structs.go	Sun Dec 16 19:54:54 2012 -0700
@@ -74,7 +74,7 @@
 type auth struct {
 	XMLName   xml.Name
 	Chardata  string `xml:",chardata"`
-	Mechanism string `xml:"mechanism,attr"`
+	Mechanism string `xml:"mechanism,attr,omitempty"`
 	Any       *Generic
 }