Usage  smquery.(sh/bat) <options> <commands> <command options>
  
Options for SEPDB connection  

  -?,  --help                # this help.
  -h , --host <host>         # specifies the host name.
			       if missing will use localhost;
  -p , --port <port>         # specifies the port number.
	                       if missing will use 10288;
  -d , --dbname <database>   # specifies SEP database name for your 
                               connection.
			       database name is required;
  -u , --user <username>     # specifies the username for SEPDB connection.
			       if missing will use guest;
  -P , --passwd <password>   # specifies the password for SEPDB connection.
		               if missing will use guest;
  -s , --security <security> # specifies the security type for 
                               SEPDB connection.
			       The secutity type must be   jsse or ptls.
			       If missing the connection is opened without 
			       security;

  -f , --sepfile <file>      # specifies file with SEP commands.
	                       if missing will use consol or commands;

Commands 

  -fetch                     # querying data from SEPDB.
  Options for 'fetch' 
    --subtree <subtree>      # querying data from specified subtree;
    [--path <e/e@a>]         # elements separated by '/' and one attribute 
                               separated by '@';
    [--value <value>]        # querying value;

  -store                     # administrate data in SEPDB.
  Options for 'store' 
    --action <write|
              delete|update> # make storing action;
    --block <blockname>      # specifying name of block;
    [--file <filename>]      # file with block to store;
                                If no file, you need use the consol.
				
Examples 
  The following examples for SEP database connection, using 'localhost' ,
port '10288', username 'root' and the <root_password>.	
  
  smquery.sh -u root -P rootPWD -d XMLDB 
    # using console mode with predefined SEP commands.

  smquery.sh -u root -P rootPWD -d XMLDB -f filename
    # using file with predefined SEP commands.

  smquery.sh -d XMLDB -fetch --subtree users/email --path TO@name --value John
    # querying from subtree 'users/email' where element 'TO' have an 
      attribute 'name', and its equal 'John'.
      
  smquery.bat -u root -P rootPWD -d XMLDB -store --action write 
     --block users/email --file filename
    # writing block on the location users/email where the block having 
      in the file.
        If no file mentioned you must enter the block from consol.