Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Create a new L{SimpleXmlApi} instance using the given source and optional
attribute map.

To create an instance of a subclass, pass in the C{cls} attribute.

        def factory(source, map=None, cls=None):
    """
    Create a new L{SimpleXmlApi} instance using the given source and optional
    attribute map.

    To create an instance of a subclass, pass in the C{cls} attribute.
    """
    if cls is None:
        cls = SimpleXmlApi
    return cls(source, map)
        


src/s/i/simplexmlapi-0.1.2/simplexmlapi/__init__.py   simplexmlapi(Download)
__all__ = ['load', 'loads', 'SimpleXmlApi']
 
from api import SimpleXmlApi, factory as _factory
 
def load(fp, map=None, cls=None, **kwargs):
    kwarg.
    """
    return _factory(fp.read(), map, cls, **kwargs)
 
 
    kwarg.
    """
    return _factory(s, map, cls, **kwargs)