Docs.rs
  • xml-rs-0.8.26
    • xml-rs 0.8.26
    • 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
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate xml

xml0.8.26

  • 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::writer::EmitterConfig
    Emitter configuration structure.
    struct field
    xml::writer::EmitterConfig::indent_string
    EmitterConfig -> Cow
    A string which will be used for a single level of …
    struct field
    xml::writer::EmitterConfig::line_separator
    EmitterConfig -> Cow
    Line separator used to separate lines in formatted output. …
    struct field
    xml::writer::EmitterConfig::perform_indent
    EmitterConfig -> bool
    Whether or not the emitted document should be indented. …
    struct field
    xml::writer::EmitterConfig::autopad_comments
    EmitterConfig -> bool
    Whether or not to automatically insert leading and …
    struct field
    xml::writer::EmitterConfig::pad_self_closing
    EmitterConfig -> bool
    Whether or not to automatically insert spaces before the …
    struct field
    xml::writer::EmitterConfig::perform_escaping
    EmitterConfig -> bool
    Whether or not characters in output events will be …
    struct field
    xml::writer::EmitterConfig::cdata_to_characters
    EmitterConfig -> bool
    Whether or not to emit CDATA events as plain characters. …
    struct field
    xml::writer::EmitterConfig::keep_element_names_stack
    EmitterConfig -> bool
    Whether or not to keep element names to support EndElement …
    struct field
    xml::writer::EmitterConfig::normalize_empty_elements
    EmitterConfig -> bool
    Whether or not to convert elements with empty content to …
    struct field
    xml::writer::EmitterConfig::write_document_declaration
    EmitterConfig -> bool
    Whether or not to write XML document declaration at the …
    method
    xml::writer::EmitterConfig::clone
    &EmitterConfig -> EmitterConfig
    method
    xml::writer::EmitterConfig::perform_indent
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::autopad_comments
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::pad_self_closing
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::cdata_to_characters
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::keep_element_names_stack
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::normalize_empty_elements
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::write_document_declaration
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::eq
    &EmitterConfig, &EmitterConfig -> bool
    method
    xml::writer::EmitterConfig::create_writer
    EmitterConfig, W -> EventWriter<W>
    Creates an XML writer with this configuration.
    method
    xml::writer::EventWriter::new_with_config
    W, EmitterConfig -> EventWriter<W>
    Creates a new EventWriter out of an std::io::Write …
    method
    xml::writer::EmitterConfig::fmt
    &EmitterConfig, &mut Formatter -> Result
    method
    xml::writer::EmitterConfig::indent_string
    EmitterConfig, T -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::line_separator
    EmitterConfig, T -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::new
    -> EmitterConfig
    Creates an emitter configuration with default values.
    method
    xml::writer::EmitterConfig::default
    -> EmitterConfig
    method
    xml::writer::EmitterConfig::clone
    &EmitterConfig -> EmitterConfig
    method
    xml::writer::EmitterConfig::perform_indent
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::autopad_comments
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::pad_self_closing
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::cdata_to_characters
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::keep_element_names_stack
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::normalize_empty_elements
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::write_document_declaration
    EmitterConfig, bool -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::indent_string
    EmitterConfig, T -> EmitterConfig
    See ParserConfig fields docs for details
    method
    xml::writer::EmitterConfig::line_separator
    EmitterConfig, T -> EmitterConfig
    See ParserConfig fields docs for details