using LightXML let docstr = """ """ doc = parse_string(docstr) xroot = root(doc) for elem in xroot["Student"] println(attribute(elem, "Name")) end end