def _flatsaxParse(fl):
 parser = make_parser()
 parser.setFeature(handler.feature_validation, 0)
 parser.setFeature(handler.feature_namespaces, 1)
 parser.setFeature(handler.feature_external_ges, 0)
 parser.setFeature(handler.feature_external_pes, 0)
 s = _ToStan(getattr(fl, 'name', None))
 parser.setContentHandler(s)
 parser.setEntityResolver(s)
 parser.setProperty(handler.property_lexical_handler, s)
 parser.parse(fl)
 return s.document

def _flatsaxParse ( fl ) : parser = make_parser ( ) parser . setFeature ( handler . feature_validation , 0 ) parser . setFeature ( handler . feature_namespaces , 1 ) parser . setFeature ( handler . feature_external_ges , 0 ) parser . setFeature ( handler . feature_external_pes , 0 ) s = _ToStan ( getattr ( fl , 'name' , None ) ) parser . setContentHandler ( s ) parser . setEntityResolver ( s ) parser . setProperty ( handler . property_lexical_handler , s ) parser . parse ( fl ) return s . document
perform a sax parse of an xml document with the _tostan class .