JPA-based applications can't connect to a database on their own. Rather, they need help in terms of what credentials to use, which schema to seek, which JDBC driver to select and which annotated ...
You could also use XSLT to make an intermediate file for you and then use that file to actually load your database. IMO, what I'd pick would be dependent upon how complex the incoming XML was and how ...