class documentation

class IXmlElement(Iterable): (source)

View In Hierarchy

Undocumented

Method __getitem__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Method add Undocumented
Method append Undocumented
Method attr Undocumented
Method children Undocumented
Method clear Undocumented
Method extend Undocumented
Method find Undocumented
Method findall Undocumented
Method findfirst Undocumented
Method findtext Undocumented
Method get Undocumented
Method insert Undocumented
Method items Undocumented
Method iter Undocumented
Method iterfind Undocumented
Method itertext Undocumented
Method keys Undocumented
Method remove Undocumented
Method set Undocumented
Method textdict Undocumented
Method textlist Undocumented
Method textof Undocumented
Method to_dict Undocumented
Method to_string Undocumented
Class Variable attrib Dictionary of element attributes.
Class Variable caseInsensitive Elemet is case-insensitive.
Class Variable lname Element name (tag without a namespace) in lower case.
Class Variable name Element name (tag without a namespace).
Class Variable tag Tag name, with an optional namespace in Clark notation.
Class Variable tail Text after this element's end tag.
Class Variable text Text before first subelement.
def __getitem__(self, item: int) -> IXmlElement: (source)

Undocumented

def __iter__(self) -> Iterator[IXmlElement]: (source)

Undocumented

def __len__(self) -> int: (source)

Undocumented

def add(self, tag: str, attrib: Optional[dict] = None, **extra) -> IXmlElement: (source)

Undocumented

def append(self, subelement: IXmlElement): (source)

Undocumented

def attr(self, key: str, default=None) -> Any: (source)

Undocumented

def children(self) -> list[IXmlElement]: (source)

Undocumented

def clear(self): (source)

Undocumented

def extend(self, subelements: Iterable[IXmlElement]): (source)

Undocumented

def find(self, path: str) -> Optional[IXmlElement]: (source)

Undocumented

def findall(self, path: str) -> list[IXmlElement]: (source)

Undocumented

def findfirst(self, *paths) -> Optional[IXmlElement]: (source)

Undocumented

def findtext(self, path: str, default: Optional[str] = None) -> str: (source)

Undocumented

def get(self, key: str, default=None) -> Any: (source)

Undocumented

def insert(self, index: int, subelement: IXmlElement): (source)

Undocumented

def items(self) -> Iterable[Any]: (source)

Undocumented

def iter(self, tag: Optional[str] = None) -> Iterable[IXmlElement]: (source)

Undocumented

def iterfind(self, path: Optional[str] = None) -> Iterable[IXmlElement]: (source)

Undocumented

def itertext(self) -> Iterable[str]: (source)

Undocumented

def keys(self) -> Iterable[str]: (source)

Undocumented

def remove(self, other: IXmlElement): (source)

Undocumented

def set(self, key: str, value: Any): (source)

Undocumented

def textdict(self, *paths, deep=False) -> dict[str, str]: (source)

Undocumented

def textlist(self, *paths, deep=False) -> list[str]: (source)

Undocumented

def textof(self, *paths) -> str: (source)

Undocumented

def to_dict(self) -> dict: (source)

Undocumented

def to_string(self, compact_whitespace=False, remove_namespaces=False, with_namespace_declarations=False, with_schema_locations=False, with_xml_declaration=False) -> str: (source)

Undocumented

attrib: dict = (source)

Dictionary of element attributes.

caseInsensitive: bool = (source)

Elemet is case-insensitive.

lname: str = (source)

Element name (tag without a namespace) in lower case.

name: str = (source)

Element name (tag without a namespace).

tag: str = (source)

Tag name, with an optional namespace in Clark notation.

tail: Optional[str] = (source)

Text after this element's end tag.

text: Optional[str] = (source)

Text before first subelement.