Trees | Indices | Help |
|
---|
|
object --+ | base_xml.XmlParserBase --+ | Parser
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|||
Inherited from base_xml.XmlParserBase | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
|
|||
|
|||
|
|
|||
NAME =
|
|||
EXTENSION =
|
|||
MIMETYPE =
|
|||
SERIALIZER Generic serializer implementation. |
|||
_NAMESPACE_URI =
|
|
|||
Inherited from |
|||
Inherited from base_xml.XmlParserBase | |||
---|---|---|---|
current | |||
ns_stack |
|
Is this parser likely to parse that file-like object? `file_` is a readable file-like object. It is the responsability of the caller to close it. Return an int between 00 and 99, indicating the likelyhood of this parser to handle correctly the given URL. 70 is used as a standard value when the parser is pretty sure it can handle the URL. |
Return a parser that will parse `file_` into `package`. `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:`_Parser` is the reference implementation. |
A shortcut for ``make_parser(file_, package).parse()``. See also `make_parser`. |
Do the actual parsing.
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
If `identified` an imported element, function is invoked with `id` as its argument. If `id` is a plain identifier, it is checked whether `self.package` has such an element. If so, function is invoked with that element as its argument; else, its execution is postponed. This is useful because some elements in the serialization may refer to other elements that are defined further. If function2 is provided and the invocation is postponed, then it will be function2 rather than function that will be invoked. |
|
SERIALIZERGeneric 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 |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 8 16:00:04 2009 | http://epydoc.sourceforge.net |