forked from nephi-dev/rxml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrxml.pyi
More file actions
23 lines (21 loc) · 709 Bytes
/
Copy pathrxml.pyi
File metadata and controls
23 lines (21 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class Node:
name: str
attrs: dict[str, str]
children: list[Node]
text: str
def __new__(
cls,
name: str,
attrs: dict[str, str] = dict(),
children: list[Node] = list(),
text: str | None = None,
) -> Node: ...
def __to_string(self, spacing: int | None) -> str: ...
def __str__(self) -> str: ...
def __repr__(self) -> str: ...
def read_file(file_path: str, root_tag: str) -> Node: ...
def read_string(xml_string: str, root_tag: str) -> Node: ...
def write_file(
node: Node, file_path: str, indent: int = 4, default_xml_def: bool = True
): ...
def write_string(node: Node, indent: int = 4, default_xml_def: bool = True) -> str: ...