Package lxml :: Module etree :: Class C14NWriterTarget |
[hide private]
[frames] | no frames]

# Class C14NWriterTarget

    object --+
             |
            C14NWriterTarget

Canonicalization writer target for the XMLParser.

Serialises parse events to XML C14N 2.0.

Configuration options:

- with_comments: set to true to include comments
- strip_text: set to true to strip whitespace before and after text content
- rewrite_prefixes: set to true to replace namespace prefixes by "n{number}"
- qname_aware_tags: a set of qname aware tag names in which prefixes
    should be replaced in text content
- qname_aware_attrs: a set of qname aware attribute names in which prefixes
    should be replaced in text content
- exclude_attrs: a set of attribute names that should not be serialised
- exclude_tags: a set of tag names that should not be serialised

Instance Methods | [hide private]
__init__(...) x.__init__(...) initializes x; see help(type(x)) for signature |
a new object with type S, a subtype of T |
__new__(T, S, ...) |
_iter_namespaces(...) |
close(...) |
comment(...) |
data(...) |
end(...) |
pi(...) |
start(...) |
start_ns(...) |
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(...) (Constructor) |
x.__init__(...) initializes x; see help(type(x)) for signature Overrides: object.__init__

### __new__(T, S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__