* that document doesn't match the structure which it supports.
*/
public XmlInStream (InputStream in) throws IOException
{
try {
Parser parser = new ValidatingParser ();
// Parser parser = ParserFactory.makeParser ();
XmlDocumentBuilder builder = new XmlDocumentBuilder ();
Resolver resolver = new Resolver ();
XmlDocument document;
builder.setIgnoringLexicalInfo (true);
parser.setDocumentHandler (builder);
resolver.registerCatalogEntry (XmlOutStream.publicId,
resourceName, this.getClass ().getClassLoader ());
parser.setEntityResolver (resolver);
parser.parse (new InputSource (in));
document = builder.getDocument ();
serial = (ElementNode) document.getDocumentElement ();
if (!"STREAM".equals (serial.getTagName ()))