aboutsummaryrefslogtreecommitdiffstats
path: root/src/element.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2024-06-27 20:22:16 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2024-06-27 20:22:16 +0100
commit1f0103cbecc6a4dfe3f34fb6441d4d491b385142 (patch)
tree6551f950332e5c913f33720e92c88cdf67ed5832 /src/element.rs
parentc08b4504ab326203b2c11abe566e518b6466613a (diff)
downloadpeanuts-1f0103cbecc6a4dfe3f34fb6441d4d491b385142.tar.gz
peanuts-1f0103cbecc6a4dfe3f34fb6441d4d491b385142.tar.bz2
peanuts-1f0103cbecc6a4dfe3f34fb6441d4d491b385142.zip
WIP: stream parsing
Diffstat (limited to 'src/element.rs')
-rw-r--r--src/element.rs4
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