Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for cachedWriteError (0.14 sec)

  1. src/encoding/xml/marshal.go

    	case Comment:
    		if bytes.Contains(t, endComment) {
    			return fmt.Errorf("xml: EncodeToken of Comment containing --> marker")
    		}
    		p.WriteString("<!--")
    		p.Write(t)
    		p.WriteString("-->")
    		return p.cachedWriteError()
    	case ProcInst:
    		// First token to be encoded which is also a ProcInst with target of xml
    		// is the xml declaration. The only ProcInst where target of xml is allowed.
    		if t.Target == "xml" && p.w.Buffered() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top