pdfreader now runs incorrectly nested pdf2xml output through BeautifulSoup to correct it