pub fn add_attributes_from_xml(
    parent: &exile::Element,
    lineage: Lineage,
    xsd: &Xsd,
) -> Result<Attributes> {
    let mut items = Attributes::new();
    for it in parent.children() {
        let t = it.name.as_str();
        match t {
            ANNOTATION => continue,
            _ => items.push(AttributeItem::from_xml(it, lineage.clone(), xsd)?),
        }
    }
    Ok(items)
}
/// Ignores `parent` but parses each of its children into an AttributeItem. Ignores `annotation`
/// and returns an error if anything else other then `attribute` or `attributeGroup` is found.
Ignores `parent` but parses each of its children into an AttributeItem.
Ignores ` parent ` but parses each of its children into an AttributeItem .
pub fn add_attributes_from_xml(
    parent: &exile::Element,
    lineage: Lineage,
    xsd: &Xsd,
) -> Result<Attributes> {
    let mut items = Attributes::new();
    for it in parent.children() {
        let t = it.name.as_str();
        match t {
            ANNOTATION => continue,
            _ => items.push(AttributeItem::from_xml(it, lineage.clone(), xsd)?),
        }
    }
    Ok(items)
}
pub fn add_attributes_from_xml ( parent : & exile :: Element , lineage : Lineage , xsd : & Xsd , ) -> Result < Attributes > { let mut items = Attributes :: new ( ) ; for it in parent . children ( ) { let t = it . name . as_str ( ) ; match t { ANNOTATION => continue , _ => items . push ( AttributeItem :: from_xml ( it , lineage . clone ( ) , xsd ) ? ) , } } Ok ( items ) }
Ignores `parent` but parses each of its children into an AttributeItem.
Ignores ` parent ` but parses each of its children into an AttributeItem .
parent
&exile::Element
lineage
Lineage
xsd
&Xsd
parent
&exile::Element
lineage
Lineage
xsd
&Xsd