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")

Trait Implementations

impl Display for XmlData

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Clone for XmlData

fn clone(&self) -> XmlData

fn clone_from(&mut self, source: &Self)

impl Debug for XmlData

fn fmt(&self, __arg_0: &mut Formatter) -> Result