for ( XMLEvent xe = xis.next() ; xe != null ; xe = xis.next() )
{
switch ( xe.getType() )
{
case XMLEvent.START_DOCUMENT :
StartDocument doc = (StartDocument) xe;
systemId = doc.getSystemId();
encoding = doc.getCharacterEncodingScheme();
version = doc.getVersion();
standAlone = doc.isStandalone();
standAlone = doc.isStandalone();
if (lineNums)
lineNumber( xe, context );
break;