Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sigil-Ebook/Sigil
/ _remove_xml_header
Function
_remove_xml_header
src/Resource_Files/python3lib/xmlprocessor.py:34–36 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
32
return
voidtags
33
34
def
_remove_xml_header(data):
35
newdata = data
36
return
re.sub(r
'<\s*\?xml\s*[^\?>]*\?*>\s*'
,
''
,newdata, count=1,flags=re.I)
37
38
def
_well_formed(data):
39
result = True
Callers
8
WellFormedXMLErrorCheck
Function · 0.70
repairXML
Function · 0.70
anchorNCXUpdates
Function · 0.70
anchorNCXUpdatesAfterMerge
Function · 0.70
performNCXSourceUpdates
Function · 0.70
performOPFSourceUpdates
Function · 0.70
performSMILUpdates
Function · 0.70
performPageMapUpdates
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected