public String GetDeclarationAttr( XmlDeclaration decl, String name ) {
//PreCondition: curNode is pointing at Declaration node or one of its virtual attributes
if ( name == strVersion )
return decl.Version;
if ( name == strEncoding )
return decl.Encoding;
if ( name == strStandalone )
return decl.Standalone;
return null;
}