Struct libxml::schemas::SchemaValidationContext[][src]

pub struct SchemaValidationContext { /* fields omitted */ }

Wrapper on xmlSchemaValidCtxt

Implementations

impl SchemaValidationContext[src]

pub fn from_parser(
    parser: &mut SchemaParserContext
) -> Result<Self, Vec<StructuredError>>
[src]

Create a schema validation context from a parser object

pub fn validate_document(
    &mut self,
    doc: &Document
) -> Result<(), Vec<StructuredError>>
[src]

Validates a given Document, that is to be tested to comply with the loaded XSD schema definition

pub fn validate_file(&mut self, path: &str) -> Result<(), Vec<StructuredError>>[src]

Validates a given file from path for its compliance with the loaded XSD schema definition

pub fn validate_node(&mut self, node: &Node) -> Result<(), Vec<StructuredError>>[src]

Validates a branch or leaf of a document given as a Node against the loaded XSD schema definition

pub fn drain_errors(&mut self) -> Vec<StructuredError>[src]

Drains error log from errors that might have accumulated while validating something

pub fn as_ptr(&self) -> *mut _xmlSchemaValidCtxt[src]

Return a raw pointer to the underlying xmlSchemaValidCtxt structure

Trait Implementations

impl Drop for SchemaValidationContext[src]

Auto Trait Implementations

impl RefUnwindSafe for SchemaValidationContext

impl !Send for SchemaValidationContext

impl !Sync for SchemaValidationContext

impl Unpin for SchemaValidationContext

impl UnwindSafe for SchemaValidationContext

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, 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.