Docs.rs
  • xml-rs-0.8.27
    • xml-rs 0.8.27
    • Permalink
    • Docs.rs crate page
    • MIT
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • netvl
    • tomaka
    • kornelski
    • Dependencies
    • Versions
    • 100% of the crate is documented
  • Platform
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate xml

xml0.8.27

  • All Items

Crate Items

  • Re-exports
  • Modules
  • Enums

Crates

  • xml

Crate xml

Source
Expand description

This crate currently provides an almost XML 1.0/1.1-compliant pull parser.

Please note that functions of this parser may panic. If a panic could cause a Denial Of Service in your codebase, you’re responsible for wrapping access to this library in catch_unwind.

Re-exports§

pub use crate::reader::EventReader;
pub use crate::reader::ParserConfig;
pub use crate::writer::EmitterConfig;
pub use crate::writer::EventWriter;

Modules§

attribute
Contains XML attributes manipulation types and functions.
common
Contains common types and functions used throughout the library.
escape
Contains functions for performing XML special characters escaping.
name
Contains XML qualified names manipulation types and functions.
namespace
Contains namespace manipulation types and functions.
reader
Contains high-level interface for a pull-based XML parser.
writer
Contains high-level interface for an events-based XML emitter.

Enums§

Encoding
Character encoding used for parsing

Results

Settings
Help
    struct
    xml::namespace::Namespace
    Namespace is a map from prefixes to namespace URIs.
    module
    xml::namespace
    Contains namespace manipulation types and functions.
    struct field
    xml::name::Name::namespace
    A namespace URI, e.g. http://www.w3.org/2000/xmlns/.
    struct field
    xml::name::OwnedName::namespace
    A namespace URI, e.g. http://www.w3.org/2000/xmlns/.
    struct field
    xml::reader::XmlEvent::StartElement::namespace
    Contents of the namespace mapping at this point of the …
    struct field
    xml::writer::events::XmlEvent::StartElement::namespace
    Contents of the namespace mapping at this point of the …
    method
    xml::name::OwnedName::namespace_ref
    Returns an optional namespace by reference, equivalen to …
    struct
    xml::namespace::NamespaceStack
    Namespace stack is a sequence of namespaces.
    type alias
    xml::namespace::NamespaceMappings
    An alias for iterator type for namespace mappings …
    struct
    xml::namespace::NamespaceStackMappings
    An iterator over mappings from prefixes to URIs in a …
    method
    xml::namespace::Namespace::iter
    &Namespace -> NamespaceMappings
    Namespace mappings contained in a namespace.
    method
    xml::namespace::Namespace::clone
    &Namespace -> Namespace
    method
    xml::namespace::Namespace::is_empty
    &Namespace -> bool
    Checks whether this namespace is empty.
    method
    xml::namespace::Namespace::into_iter
    &Namespace -> IntoIterator::IntoIter
    method
    xml::namespace::Namespace::is_essentially_empty
    &Namespace -> bool
    Checks whether this namespace is essentially empty, that …
    method
    xml::namespace::Namespace::borrow
    &Namespace -> Cow<Namespace>
    Borrowed namespace for the writer
    method
    xml::namespace::Namespace::eq
    &Namespace, &Namespace -> bool
    method
    xml::namespace::Namespace::fmt
    &Namespace, &mut Formatter -> Result
    method
    xml::namespace::Namespace::extend
    &mut Namespace, T -> ()
    method
    xml::namespace::Namespace::contains
    &Namespace, &P -> bool
    Checks whether this namespace mapping contains the given …
    method
    xml::namespace::Namespace::get
    &Namespace, &P -> Option<&str>
    Queries the namespace for the given prefix.
    method
    xml::namespace::Namespace::put
    &mut Namespace, P, U -> bool
    Puts a mapping into this namespace.
    method
    xml::namespace::Namespace::force_put
    &mut Namespace, P, U -> Option<String>
    Puts a mapping into this namespace forcefully.
    struct field
    xml::reader::XmlEvent::StartElement::namespace
    StartElement -> Namespace
    Contents of the namespace mapping at this point of the …
    method
    xml::namespace::Namespace::empty
    -> Namespace
    Returns an empty namespace.
    method
    xml::namespace::NamespaceStack::squash
    &NamespaceStack -> Namespace
    Combines this stack of namespaces into a single namespace.
    method
    xml::namespace::NamespaceStack::pop
    &mut NamespaceStack -> Namespace
    Removes the topmost namespace in this stack.
    method
    xml::namespace::NamespaceStack::peek
    &NamespaceStack -> &Namespace
    Borrows the topmost namespace immutably, leaving the stack …
    method
    xml::namespace::NamespaceStack::try_pop
    &mut NamespaceStack -> Option<Namespace>
    Removes the topmost namespace in this stack.
    method
    xml::namespace::NamespaceStack::peek_mut
    &mut NamespaceStack -> &mut Namespace
    Borrows the topmost namespace mutably, leaving the stack …
    method
    xml::namespace::Namespace::clone
    &Namespace -> Namespace