Struct xmlJSON::XmlData
[−]
[src]
pub struct XmlData { pub name: String, pub attributes: Vec<(String, String)>, pub data: Option<String>, pub sub_elements: Vec<XmlData>, }
An XML Tag
For exammple:
<foo bar="baz">
test text
<sub></sub>
</foo>
Fields
name | Name of the tag (i.e. "foo") |
attributes | Key-value pairs of the attributes (i.e. ("bar", "baz")) |
data | Data (i.e. "test text") |
sub_elements | Sub elements (i.e. an XML element of "sub") |