prototype of xmlparser for pdfs