pub struct XmlDtd {
pub name: Option<String>,
pub public_id: Option<String>,
pub system_id: Option<String>,
pub int_subset: Option<String>,
pub entities: HashMap<String, String>,
pub parameter_entities: HashMap<String, String>,
pub unparsed_entities: HashSet<String>,
pub elements: HashMap<String, ElementDecl>,
pub duplicate_elements: Vec<String>,
pub attributes: HashMap<(String, String), AttrDecl>,
}Expand description
Parsed DTD attached to a document (xmlDtd).
Fields§
§name: Option<String>§public_id: Option<String>§system_id: Option<String>§int_subset: Option<String>§entities: HashMap<String, String>General entity name → replacement text.
parameter_entities: HashMap<String, String>Parameter entity name → replacement.
unparsed_entities: HashSet<String>Names of entities declared with an NDATA annotation. An attribute of type ENTITY must name one of these, which needs them kept apart from parsed entities rather than lumped in with them.
elements: HashMap<String, ElementDecl>Element name → content model.
duplicate_elements: Vec<String>Element types declared more than once. A map cannot represent that, and “Unique Element Type Declaration” is a validity constraint, so it has to be recorded as the declarations go by and reported at validation time rather than at parse time.
attributes: HashMap<(String, String), AttrDecl>(element, attribute) → declaration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XmlDtd
impl RefUnwindSafe for XmlDtd
impl Send for XmlDtd
impl Sync for XmlDtd
impl Unpin for XmlDtd
impl UnsafeUnpin for XmlDtd
impl UnwindSafe for XmlDtd
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more