added XML parser

This commit is contained in:
2024-05-19 17:29:16 +02:00
parent 44fd298edb
commit 8d93e6473e
2 changed files with 25 additions and 3 deletions

View File

@ -81,8 +81,7 @@
)
}
#let load(path) = {
let content = xml(path).first()
#let parse(content) = {
let struct-elmts = content.children.filter(e => "tag" in e and e.tag == "structure")
let structures = (:)
@ -97,4 +96,9 @@
return (
structures: structures
)
}
#let load(path) = {
let content = xml(path).first()
return parse(content)
}