No. The problem is that there is no way to know when a document finishes other than reading to the end of the InputStream / Reader.
e.g. <foo>hello</foo> or <foo>hello</foo> <!-- here's a comment --> or <foo>hello</foo> <?pi this="a processing instruction"?> So you need to use some encoding mechanism to know when a document ends. e.g. use MIME encoding or put all the XML docs into a ZIP or something. James ----- Original Message ----- From: "Juan Du" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 2:17 AM Subject: [dom4j-user] Read multiple documents from a single inputstream > > Is there an easy way to read multiple Documents from a single InputStream? > currently SAXReader has a read method > to return a Document object? Is it possible to > return a list of Documents instead? > > Thanks. > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > _______________________________________________ > dom4j-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dom4j-user > _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
