mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
update xml.parse_vcd
This commit is contained in:
parent
13984539f5
commit
e9221af407
3 changed files with 18 additions and 6 deletions
|
|
@ -101,8 +101,9 @@ xml.tostring(data: XML, multiline: bool = true) -> str
|
|||
xml.parse(code: str) -> XML
|
||||
|
||||
-- Parses the VCD (VoxelCore Declaration) format used by the VCM format.
|
||||
-- root_tag - root element tag (the format does not require an explicit root)
|
||||
xml.parse(code: str, root_tag: str = "root") -> XML
|
||||
-- root_tag - a root element with the specified tag will be implicitly created,
|
||||
-- containing all root elements
|
||||
xml.parse_vcd(code: str, root_tag: str = "root") -> XML
|
||||
```
|
||||
|
||||
## *bjson* library
|
||||
|
|
|
|||
|
|
@ -101,8 +101,9 @@ xml.tostring(data: XML, multiline: bool = true) -> str
|
|||
xml.parse(code: str) -> XML
|
||||
|
||||
-- Парсит формат VCD (VoxelCore Declaration), используемый форматом VCM.
|
||||
-- root_tag - тег корневого элемента (формат не требует наличия явного)
|
||||
xml.parse(code: str, root_tag: str = "root") -> XML
|
||||
-- root_tag - будет неявно создан корневой элемент с указанным тегом,
|
||||
-- содержащий все корневые элементы
|
||||
xml.parse_vcd(code: str, root_tag: str | nil = nil) -> XML
|
||||
```
|
||||
|
||||
## Библиотека bjson
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue