### XmlContainer.dump |

`

###

    import com.sleepycat.dbxml.*;

    public void dump(String filename, int flags)
        throws XmlException;

### Description: XmlContainer.dump

The XmlContainer.dump method dumps the container contents to the specified output stream. The container can be reconstructed by a call to XmlContainer.load.

The container must be closed; the system throws an exception if the container is open.

The container must be have been opened at least once; the system throws an exception if the underlying files have not yet been created.

### Parameters

filename
  The name of a file to which the container will be dumped.

flags
  Not currently used.

### Throws

The XmlContainer.dump method may fail and throw XmlException, encapsulating one of the following non-zero errors:

CONTAINER_OPEN
  The container is open.

DATABASE_ERROR
  An error occurred in an underlying Berkeley DB database. The XmlException.getDbError method will return the error code for the error.

### Class

XmlContainer, XmlDocument, XmlException, XmlIndexSpecification, XmlQueryContext, XmlQueryExpression, XmlResults, XmlUpdateContext, XmlValue`

Copyright (c) 1996-2003 Sleepycat Software, Inc. - All rights reserved.