[Java] 如何令DocumentBuilder ignore invalid characters?

我有個Java program要Parse XML,但係XML document可能會有Invalid characters出現,請問有無方法可以另DocumentBuilder ignore咗呢D characters,而唔係Throw Exception?

目前做法係將XML declaration自行轉做XML version 1.1,但係呢個方法似乎唔合標準...(?)

Thanks!