Beispiel #1
0
def parseString(doc):
  return Document(_cODP.ODP_parseString(doc))
Beispiel #2
0
def parseFile(f):
  if type(f) is StringType:
    return Document(_cODP.ODP_parseFile(f))
  else:
    doc=f.read()
    return Document(_cODP.ODP_parseString(doc))
Beispiel #3
0
def ODP_parseString(*args):
    return _cODP.ODP_parseString(*args)