diff --git a/src/main.rs b/src/main.rs index 033a201..f86656d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -347,9 +347,9 @@ fn main() { .expect("PhysicalSpace element missing"); let mut develem = Element::new("device"); - let mut name_e = Element::new("name"); - name_e.children.push(XMLNode::Text(name.to_string())); - develem.children.push(XMLNode::Element(name_e)); + add_elem_with_text(&mut develem, "name", name); + add_elem_with_text(&mut develem, "width", "32"); + let mut periph_out = Element::new("peripherals"); for node in phys.children.iter() {