Package lxml :: Module etree :: Class DocInfo

[hide private]
[frames] | no frames]

# Class DocInfo

    object --+
             |
            DocInfo

Document information provided by parser and DTD.

Instance Methods | [hide private]

a new object with type S, a subtype of T

__new__(T, S, ...) |

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__init__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

| URL The source URL of the document (or None if unknown).
| doctype Returns a DOCTYPE declaration string for the document.
| encoding Returns the encoding name as declared by the document.
| externalDTD Returns a DTD validator based on the external subset of the document.
| internalDTD Returns a DTD validator based on the internal subset of the document.
| public_id Returns the public ID of the DOCTYPE.
| root_name Returns the name of the root node as defined by the DOCTYPE.
| standalone Returns the standalone flag as declared by the document. The possible values are True (`standalone='yes'`), False (`standalone='no'` or flag not provided in the declaration), and None (unknown or no declaration found). Note that a normal truth test on this value will always tell if the `standalone` flag was set to `'yes'` or not.
| system_url Returns the system ID of the DOCTYPE.
| xml_version Returns the XML version as declared by the document.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __new__(T, S, ...)

Returns: a new object with type S, a subtype of T
Overrides: object.__new__