MCPcopy Index your code
hub / github.com/python/cpython / parseString

Function parseString

Lib/xml/dom/minidom.py:2007–2015  ·  view source on GitHub ↗

Parse a file into a DOM from a string.

(string, parser=None)

Source from the content-addressed store, hash-verified

2005 {'parser': parser, 'bufsize': bufsize})
2006
2007def parseString(string, parser=None):
2008 """Parse a file into a DOM from a string."""
2009 if parser is None:
2010 from xml.dom import expatbuilder
2011 return expatbuilder.parseString(string)
2012 else:
2013 from xml.dom import pulldom
2014 return _do_pulldom_parse(pulldom.parseString, (string,),
2015 {'parser': parser})
2016
2017def getDOMImplementation(features=None):
2018 if features:

Callers 15

testInsertBeforeMethod · 0.90
testAAAMethod · 0.90
testAABMethod · 0.90
testChangeAttrMethod · 0.90
testGetAttrListMethod · 0.90
testGetAttrValuesMethod · 0.90
testWriteXMLMethod · 0.90
testAltNewlineMethod · 0.90

Calls 2

_do_pulldom_parseFunction · 0.85
parseStringMethod · 0.45

Tested by 15

testInsertBeforeMethod · 0.72
testAAAMethod · 0.72
testAABMethod · 0.72
testChangeAttrMethod · 0.72
testGetAttrListMethod · 0.72
testGetAttrValuesMethod · 0.72
testWriteXMLMethod · 0.72
testAltNewlineMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…