public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException {
//super.startDocument( versionIndex, encodingIndex,
// standAloneIndex);
super.startDocument(locator, encoding, augs);
this.locator = locator;
Node3 node = null ;
try {
node = (Node3) this.getProperty( "http://apache.org/xml/properties/dom/current-element-node" );
//System.out.println( "The node = " + node );
}
catch( org.xml.sax.SAXException ex )
{
System.err.println( "except" + ex );;
}
// NodeImpl node = (NodeImpl)getCurrentNode(); // Get current node
if( node != null )
node.setUserData( "startLine", String.valueOf( locator.getLineNumber() ), null ); // Save location String into node
} //startDocument