MCPcopy 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
34def _remove_xml_header(data):
35 newdata = data
36 return re.sub(r'<\s*\?xml\s*[^\?>]*\?*>\s*','',newdata, count=1,flags=re.I)
37
38def _well_formed(data):
39 result = True

Callers 8

WellFormedXMLErrorCheckFunction · 0.70
repairXMLFunction · 0.70
anchorNCXUpdatesFunction · 0.70
performNCXSourceUpdatesFunction · 0.70
performOPFSourceUpdatesFunction · 0.70
performSMILUpdatesFunction · 0.70
performPageMapUpdatesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected