Ignores PDFObjectNotFound and returns xml as string. Edited to work with JS_analyse