structs.go
changeset 34 7b1f924c75e2
parent 33 571713f49494
child 36 9fe022261dcc
--- a/structs.go	Fri Dec 30 17:16:37 2011 -0700
+++ b/structs.go	Fri Dec 30 17:27:14 2011 -0700
@@ -205,7 +205,7 @@
 	buf := bytes.NewBuffer(nil)
 	buf.WriteString("<stream:stream")
 	writeField(buf, "xmlns", "jabber:client")
-	writeField(buf, "xmlns:stream", nsStream)
+	writeField(buf, "xmlns:stream", NsStream)
 	writeField(buf, "to", s.To)
 	writeField(buf, "from", s.From)
 	writeField(buf, "id", s.Id)
@@ -254,7 +254,7 @@
 func (e *errText) MarshalXML() ([]byte, os.Error) {
 	buf := bytes.NewBuffer(nil)
 	buf.WriteString("<text")
-	writeField(buf, "xmlns", nsStreams)
+	writeField(buf, "xmlns", NsStreams)
 	writeField(buf, "xml:lang", e.Lang)
 	buf.WriteString(">")
 	xml.Escape(buf, []byte(e.Text))