Enum elementtree::Error [] [src]

pub enum Error {
    MalformedXml {
        msg: Cow<'static, str>,
        pos: Position,
    },
    Io(Error),
    Utf8(Utf8Error),
    UnexpectedEvent {
        msg: Cow<'static, str>,
        pos: Position,
    },
    DuplicateNamespacePrefix,
}

Errors that can occur parsing XML

Variants

The XML is invalid

Fields of MalformedXml

An IO Error

A UTF-8 Error

This library is unable to process this XML. This can occur if, for example, the XML contains processing instructions.

Fields of UnexpectedEvent

A namespace prefix was already used

Methods

impl Error
[src]

Returns the position of the error if known

Returns the line number of the error or 0 if unknown

Returns the column of the error or 0 if unknown

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<XmlReadError> for Error
[src]

Performs the conversion.

impl From<XmlWriteError> for Error
[src]

Performs the conversion.