diff options
Diffstat (limited to 'src/element.rs')
-rw-r--r-- | src/element.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/element.rs b/src/element.rs index 3273ba0..4dcb616 100644 --- a/src/element.rs +++ b/src/element.rs @@ -23,13 +23,13 @@ pub enum Node { // should this be a trait? pub struct Element { name: Name, - // namespace: (Name, String), // can't have this, must be external method that is called within the context of a reader/writer + // namespace: Name, // each element once created contains the qualified namespace information for that element // the name contains the qualified namespace so this is unnecessary // 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. - // namespaces: HashMap<Option<String>, String>, + namespaces: HashMap<Option<String>, String>, // 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 |