XOM: set timeout when loading xml from a URL?
Is it possible to set a timeout when loading an xml directly from a URL?


    Builder parser = new Builder();
    Document doc = parser.build("http://somehost");

This may take sometimes minutes, and would be really handy to be able to time this out directly in the library.
XOM: set timeout when loading xml from a URL?
===

Is it possible to set a timeout when loading an xml directly from a URL?


    Builder parser = new Builder();
    Document doc = parser.build("http://somehost");

This may take sometimes minutes, and would be really handy to be able to time this out directly in the library.