diff --git a/xmpp.go b/xmpp.go index 1f041cb..5e06275 100644 --- a/xmpp.go +++ b/xmpp.go @@ -1461,7 +1461,7 @@ func nextStart(p *xml.Decoder) (xml.StartElement, error) { func nextEnd(p *xml.Decoder) (xml.EndElement, error) { p.Strict = false for { - t, err := p.Token() + t, err := p.RawToken() if err != nil || t == nil { return xml.EndElement{}, err }