Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ startDocument
Method
startDocument
Lib/xml/sax/saxutils.py:150–152 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
148
# ContentHandler methods
149
150
def
startDocument(self):
151
self._write(
'<?xml version="1.0" encoding="%s"?>\n'
%
152
self._encoding)
153
154
def
endDocument(self):
155
self._flush()
Callers
15
test_xmlgen_basic
Method · 0.95
test_xmlgen_basic_empty
Method · 0.95
test_xmlgen_content
Method · 0.95
test_xmlgen_content_empty
Method · 0.95
test_xmlgen_pi
Method · 0.95
test_xmlgen_content_escape
Method · 0.95
test_xmlgen_attr_escape
Method · 0.95
test_xmlgen_encoding
Method · 0.95
test_xmlgen_unencodable
Method · 0.95
test_xmlgen_ignorable
Method · 0.95
test_xmlgen_ignorable_empty
Method · 0.95
test_xmlgen_encoding_bytes
Method · 0.95
Calls
1
_write
Method · 0.45
Tested by
15
test_xmlgen_basic
Method · 0.76
test_xmlgen_basic_empty
Method · 0.76
test_xmlgen_content
Method · 0.76
test_xmlgen_content_empty
Method · 0.76
test_xmlgen_pi
Method · 0.76
test_xmlgen_content_escape
Method · 0.76
test_xmlgen_attr_escape
Method · 0.76
test_xmlgen_encoding
Method · 0.76
test_xmlgen_unencodable
Method · 0.76
test_xmlgen_ignorable
Method · 0.76
test_xmlgen_ignorable_empty
Method · 0.76
test_xmlgen_encoding_bytes
Method · 0.76