aboutsummaryrefslogtreecommitdiffstats
path: root/src/xml/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/mod.rs')
-rw-r--r--src/xml/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/xml/mod.rs b/src/xml/mod.rs
index d1b9ddf..d22abd6 100644
--- a/src/xml/mod.rs
+++ b/src/xml/mod.rs
@@ -1,5 +1,6 @@
use std::char;
+pub mod composers;
pub mod parsers;
/// [1] NSAttName ::= PrefixedAttName | DefaultAttName
@@ -75,8 +76,7 @@ pub struct Name<'s>(&'s str);
/// [6] Names ::= Name (#x20 Name)*
#[repr(transparent)]
-// TODO: turn into vec
-pub struct Names<'s>(&'s str);
+pub struct Names<'s>(Vec<Name<'s>>);
/// [7] Nmtoken ::= (NameChar)+
#[derive(Debug, Clone)]
@@ -85,8 +85,7 @@ pub struct Nmtoken<'s>(&'s str);
/// [8] Nmtokens ::= Nmtoken (#x20 Nmtoken)*
#[repr(transparent)]
-// TODO: turn into vec
-pub struct Nmtokens<'s>(&'s str);
+pub struct Nmtokens<'s>(Vec<Nmtoken<'s>>);
#[derive(Clone, Debug)]
pub enum LiteralData<'s> {