MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / parseString

Function parseString

src/Tools/bindings/model/generateModel_Module.py:3191–3200  ·  view source on GitHub ↗
(inString)

Source from the content-addressed store, hash-verified

3189
3190
3191def parseString(inString):
3192 doc = minidom.parseString(inString)
3193 rootNode = doc.documentElement
3194 rootObj = GenerateModel.factory()
3195 rootObj.build(rootNode)
3196 # Enable Python to collect the space used by the DOM.
3197 doc = None
3198 sys.stdout.write('<?xml version="1.0" ?>\n')
3199 rootObj.export(sys.stdout, 0, name_="GenerateModel")
3200 return rootObj
3201
3202
3203def parseLiteral(inFileName):

Callers 2

validateMethod · 0.85
validateAndInterpretMethod · 0.85

Calls 5

parseStringMethod · 0.80
factoryMethod · 0.45
buildMethod · 0.45
writeMethod · 0.45
exportMethod · 0.45

Tested by

no test coverage detected