Struct libxml::schemas::SchemaValidationContext [−][src]
Wrapper on xmlSchemaValidCtxt
Implementations
impl SchemaValidationContext
[src][−]
pub fn from_parser(
parser: &mut SchemaParserContext
) -> Result<Self, Vec<StructuredError>>
[src][−]
parser: &mut SchemaParserContext
) -> Result<Self, Vec<StructuredError>>
Create a schema validation context from a parser object
pub fn validate_document(
&mut self,
doc: &Document
) -> Result<(), Vec<StructuredError>>
[src][−]
&mut self,
doc: &Document
) -> Result<(), Vec<StructuredError>>
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][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,