I need to validate a XML file whose schema URLs (referenced at schemaLocation attribute) return an HTTP 301 error pointing out the correct URL. Moreover, those schemas have schema imports whose URLs return HTTP 301 pointing out the correct URL too.
JDom2 seems unable to resolve the HTTP 301 errors like a simple browser does. Is there a way to force JDom2 to resolve properly such an error?. What JDom2 class/method i must override to do that?. Is there another java XML library that can do that?
FYI: The erroneous URLs are like http://schema-url and the HTTP 301 errors return URLs like
No comments:
Post a Comment