mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-28 18:30:06 +00:00
[xml] Add parse_from_string overload.
`parse` now takes either a `[]u8` slice or a string. `load_from_file` takes a path string.
This commit is contained in:
@@ -295,7 +295,7 @@ run_tests :: proc(t: ^testing.T) {
|
||||
path := test_file_path(test.filename)
|
||||
log(t, fmt.tprintf("Trying to parse %v", path))
|
||||
|
||||
doc, err := xml.parse(path, test.options, Silent)
|
||||
doc, err := xml.load_from_file(path, test.options, Silent)
|
||||
defer xml.destroy(doc)
|
||||
|
||||
tree_string := doc_to_string(doc)
|
||||
|
||||
Reference in New Issue
Block a user