I am trying to parse an XML using SAX Parser but keep getting XML document structures must start and end within the same entity.
which is expected as the XML doc I
BeautifulSoup in Python can handle incomplete xml really well. I use it to parse prefix of large XML files for preview.
>>> from bs4 import BeautifulSoup
>>> BeautifulSoup('foobar<','xml')
\nfoobar