NextEnd: Use Token() instead of RawToken()

I assumed RawToken would be better suited here, but there were errors
parsing messages that could be fixed by reverting to Token().
This commit is contained in:
Martin Dosch 2024-03-31 15:50:04 +02:00
parent 78d07e9eee
commit ce687243c1

View File

@ -1555,7 +1555,7 @@ func (c *Client) nextEnd() (xml.EndElement, error) {
c.p.Strict = false c.p.Strict = false
for { for {
c.nextMutex.Lock() c.nextMutex.Lock()
to, err := c.p.RawToken() to, err := c.p.Token()
if err != nil || to == nil { if err != nil || to == nil {
c.nextMutex.Unlock() c.nextMutex.Unlock()
return xml.EndElement{}, err return xml.EndElement{}, err