Struct roxmltree::ParsingOptions[][src]

pub struct ParsingOptions {
    pub allow_dtd: bool,
}

Parsing options.

Fields

allow_dtd: bool

Allow DTD parsing.

When set to false, XML with DTD will cause an error. Empty DTD block is not an error.

Currently, there is no option to simply skip DTD. Mainly because you will get UnknownEntityReference error later anyway.

This flag is set to false by default for security reasons, but roxmltree still has checks for billion laughs attack, so this is just an extra security measure.

Default: false

Trait Implementations

impl Clone for ParsingOptions[src]

impl Copy for ParsingOptions[src]

impl Debug for ParsingOptions[src]

impl Default for ParsingOptions[src]

impl PartialEq<ParsingOptions> for ParsingOptions[src]

impl StructuralPartialEq for ParsingOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.