[xml] Use io.Writer for xml.print(doc).

This commit is contained in:
Jeroen van Rijn
2021-12-05 02:52:22 +01:00
parent 9b2e67df67
commit 46a4927aca
3 changed files with 36 additions and 25 deletions
+1 -1
View File
@@ -75,6 +75,7 @@ Option_Flag :: enum {
*/
Decode_SGML_Entities,
}
Option_Flags :: bit_set[Option_Flag; u8]
Document :: struct {
root: ^Element,
@@ -122,7 +123,6 @@ Options :: struct {
flags: Option_Flags,
expected_doctype: string,
}
Option_Flags :: bit_set[Option_Flag]
Encoding :: enum {
Unknown,