How can I have JAXB call a method after it has completed unmarshalling an XML file into an object?
You can simple add the following method to your object definition: void afterUnmarshal(Unmarshaller u, Object parent) { … } It will be called once the current object has been completely deserialized. See also the documentation about unmarshalling callbacks