[XML-SIG] make_parser
Ajay
abra9823 at mail.usyd.edu.au
Tue Sep 7 12:59:17 CEST 2004
hi!
in my code, i am giving make_parser the name of the parser i'd like to use
the code is below
parser = make_parser(['xmlproc'])
parser.setFeature(feature_namespaces, 0)
dh = FindIssue()
# Tell the parser to use our handler
parser.setContentHandler(dh)
# Parse the input
f = open('\um\proxy\policy-eg1.xml')
str = f.read()
f.close()
print "file read"
parser.parseString(str)
this throws an error saying ExpatParser instance has no attribute
'parseString'
what am i doing wrong? i thought i was using xmlproc
thanks
cheers
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the XML-SIG
mailing list