throws LineConfigException,
IOException,
org.xml.sax.SAXException
{
QDocument doc = new QDocument();
DOMBuilder builder = new DOMBuilder();
builder.init(doc);
String systemId = null;
String filename = null;
if (is instanceof ReadStream) {
systemId = ((ReadStream) is).getPath().getURL();
filename = ((ReadStream) is).getPath().getUserPath();
}
doc.setSystemId(systemId);
builder.setSystemId(systemId);
doc.setRootFilename(filename);
builder.setFilename(filename);
builder.setSkipWhitespace(true);
InputSource in = new InputSource();
in.setByteStream(is);
in.setSystemId(systemId);