Struct treexml::Element [] [src]

pub struct Element {
    pub prefix: Option<String>,
    pub name: String,
    pub attributes: HashMap<String, String>,
    pub children: Vec<Element>,
    pub text: Option<String>,
    pub cdata: Option<String>,
}

An XML element

Fields

Tag prefix, used for namespacing: xsl in xsl:for-each

Tag name: for-each in xsl:for-each

Tag attributes

A vector of child elements

Contents of the element

CDATA contents of the element

Methods

impl Element
[src]

Create a new Element with the tag name name

Find a single child of the current Element, given a predicate

Find a single child of the current Element, given a predicate; returns a mutable borrow

Filters the children of the current Element, given a predicate

Filters the children of the current Element, given a predicate; returns a mutable iterator

Trait Implementations

impl Debug for Element
[src]

Formats the value using the given formatter.

impl Clone for Element
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Element
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Element
[src]

impl Default for Element
[src]

Returns the "default value" for a type. Read more

impl Display for Element
[src]

Formats the value using the given formatter. Read more