Module advene_xml
source code
Generic serializer implementation.
Note that the order chosen for XML elements (imports, tags, medias,
resources, annotations, relations, views, queries, lists) is designed to
limit the number of forward references, which makes the work of the
parser more difficult. Forward references are nevetheless still possible
in meta-data, tag associated to another tag, list containing another
list
|
|
|
|
|
_indent(elem,
level=0)
from http://effbot.org/zone/element-lib.htm#prettyprint |
source code
|
|
|
|
|
NAME = ' Generic Advene XML '
|
|
EXTENSION = ' .bxp '
|
|
MIMETYPE = ' application/x-advene-bxp '
|
Return a serializer that will serialize `package` to `file_`.
`file_` is a writable file-like object. It is the responsability of
the caller to close it.
The returned object must implement the interface for which
:class:`_Serializer` is the reference implementation.
|
A shortcut for ``make_serializer(package, file_).serialize()``.
See also `make_serializer`.
|