Parses the document at the specified URL.
Note that relative URLs generally do not work here, as there's no base to resolve them against. This includes relative URLs that point into the file system, though this is somewhat platform dependent. Furthermore, file
URLs often only work when they adhere exactly to RFC 2396 syntax. URLs that work in Internet Explorer often fail when used in Java. If you're reading XML from a file, more reliable results are obtained by using the build
method that takes a java.io.File
object as an argument.
@param systemID an absolute URL from which the document is read.The URL's scheme must be one supported by the Java VM.
@return the parsed
Document
@throws ValidityException if a validity error is detected. This is only thrown if the builder has been instructed to validate.
@throws ParsingException if a well-formedness error is detected
@throws IOException if an I/O error such as a broken socket prevents the document from being fully read