harirammano...@gmail.com wrote: >> @peter yes here it is not xml, but real data is an xml..believe me.. > > @peter this is the similar xml i am having, you can correlate. > > https://tomcat.apache.org/tomcat-5.5-doc/appdev/web.xml.txt
This is still too vague. If you post the code you actually tried in a small standalone script together with a small sample xml file that produces the same failure as your actual data I or someone might help you fix it. -- https://mail.python.org/mailman/listinfo/python-list