automate PDF to XML Tag