When arriving by train: Take the ICE/IC to Duisburg Hauptbahnhof (main train station). From there, there are hourly regional trains to Xanten.