reader1 = new StringReader(s);
reader2 = new StringReader(s);
System.out.println("reader ... in main3");
XmlStreamSource source = new XppXmlStreamImpl(reader1);
XMLInputStream myStream = XmlStreamFactory.
createXmlInputStream( source );
//XMLInputStream babelStream = XMLInputStreamFactory.newInstance().
// newInputStream(reader2);
System.out.println("myStream ...");
for(int i=0; myStream.hasNext() && i<0; i++)
{
System.out.println( "my: " + " '" +
myStream.next() + "'");
//System.out.println( "bb: " + " '" +
// babelStream.next() + "'");
}
XMLInputStream myss = myStream.getSubStream();
//XMLInputStream bbss = babelStream.getSubStream();
for(int i=0; myss.hasNext() && i<3; i++)
{
System.out.println( "my SUBStream: " + " '" +
myss.next() + "'");
//System.out.println( "bb SUBStream: " + " '" +
// bbss.next() + "'");
}
XMLInputStream myss2 = myss.getSubStream();
//XMLInputStream bbss2 = myss.getSubStream();
for(; myss2.hasNext() ;)
{
System.out.println( "my SubSUBStream 2: " +
" '" + myss2.next() + "'");
//System.out.println( "bb SubSUBStream 2: " +
// " '" + bbss2.next() + "'");
}
myss2.close();
//bbss2.close();
for(; myss.hasNext() /*|| bbss.hasNext()*/ ;)
{
System.out.println( "my SUBStream: " + " '" +