public static void loadDocument(String xml, String xsd, DOMHandler handler, boolean validate) throws IOException, InvalidArgumentException, SAXException, ParserConfigurationException, Exception {
		URL xmlUrl = URLFactory.makeURL(xml);
		URL xsdUrl = URLFactory.makeURL(xsd);
		loadDocument(xmlUrl, xsdUrl, handler, validate);		
	}
public static void loadDocument ( String xml , String xsd , DOMHandler handler , boolean validate ) throws IOException , InvalidArgumentException , SAXException , ParserConfigurationException , Exception { URL xmlUrl = URLFactory . makeURL ( xml ) ; URL xsdUrl = URLFactory . makeURL ( xsd ) ; loadDocument ( xmlUrl , xsdUrl , handler , validate ) ; }
Parses an XML document and passes it on to the given handler, or to
a lambda expression for handling.

@param xml
the URL of the XML to parse, as a string.
@param xsd
the URL of the XML's schema definition, as a string.
@param handler
the handler that will handle the document.
@param validate
whether validation against the given schema should be performed.
@throws IOException
@throws InvalidArgumentException
@throws SAXException
@throws ParserConfigurationException
@throws Exception
any handler-related exceptions.