From 381af38a0910ca42ccb36568ebbcd147cfbd237b Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Sun, 24 Nov 2024 14:59:41 +0000 Subject: automatically declare default namespaces unless overriden --- src/element.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/element.rs') diff --git a/src/element.rs b/src/element.rs index 2b149a8..1c04c98 100644 --- a/src/element.rs +++ b/src/element.rs @@ -58,7 +58,8 @@ pub struct Element { // namespace: String, // hashmap of explicit namespace declarations on the element itself only // possibly not needed as can be calculated at write time depending on context and qualified namespace, and for reading, element validity and namespaces are kept track of by the reader. - pub namespace_declarations: HashSet, + // change this to custom namespace declarations only, so you can override the definition of namespaces if you wish + pub namespace_declaration_overrides: HashSet, // attributes can be in a different namespace than the element. how to make sure they are valid? // maybe include the namespace instead of or with the prefix // you can calculate the prefix from the namespaced name and the current writer context -- cgit