Skip to main content

DefaultSAXHandler

Struct DefaultSAXHandler 

Source
pub struct DefaultSAXHandler;
Expand description

Default SAX handler.

It uses the default implementation of each trait, except for printing errors to stderr.

Trait Implementations§

Source§

impl EntityResolver for DefaultSAXHandler

Source§

fn get_external_subset( &mut self, name: &str, base_uri: Option<&URIStr>, ) -> Result<InputSource<'static>, XMLError>

This method provides an alternative external DTD subset when no external DTD subset is specified in the document type declaration. Read more
Source§

fn resolve_entity( &mut self, name: &str, public_id: Option<&str>, base_uri: &URIStr, system_id: &URIStr, ) -> Result<InputSource<'static>, XMLError>

By default, it attempts to retrieve local files using base_uri and system_id. Read more
Source§

impl ErrorHandler for DefaultSAXHandler

Source§

fn error(&mut self, error: SAXParseError)

Reference Read more
Source§

fn fatal_error(&mut self, error: SAXParseError)

Reference Read more
Source§

fn warning(&mut self, error: SAXParseError)

Reference Read more
Source§

impl SAXHandler for DefaultSAXHandler

Source§

fn characters(&mut self, data: &str)

Text content that appears between elements. Read more
Source§

fn declaration( &mut self, version: &str, encoding: Option<&str>, standalone: Option<bool>, )

XML declaration or Text declaration. Read more
Source§

fn ignorable_whitespace(&mut self, data: &str)

Whitespace appearing between element contents. Read more
Source§

fn processing_instruction(&mut self, target: &str, data: Option<&str>)

Processing instruction. Read more
Source§

fn comment(&mut self, data: &str)

Comment. Read more
Source§

fn set_document_locator(&mut self, locator: Arc<Locator>)

Locator receive event. Read more
Source§

fn skipped_entity(&mut self, name: &str)

Entity reference that could not be resolved or was not resolved. Read more
Source§

fn start_document(&mut self)

Parse start event. Read more
Source§

fn end_document(&mut self)

Parse end event. Read more
Source§

fn start_element( &mut self, namespace_name: Option<&str>, local_name: Option<&str>, qname: &str, atts: &Attributes, )

Element start event. Read more
Source§

fn end_element( &mut self, namespace_name: Option<&str>, local_name: Option<&str>, qname: &str, )

Element end event. Read more
Source§

fn start_prefix_mapping(&mut self, prefix: Option<&str>, namespace_name: &str)

Namespace scope start event. Read more
Source§

fn end_prefix_mapping(&mut self, prefix: Option<&str>)

Namespace scope end event. Read more
Source§

fn attribute_decl( &mut self, element_name: &str, attribute_name: &str, attribute_type: &AttributeType, default_decl: &DefaultDecl, )

Attribute list declaration in DTD. Read more
Source§

fn element_decl(&mut self, name: &str, contentspec: &ContentSpec)

Element declaration in DTD. Read more
Source§

fn internal_entity_decl(&mut self, name: &str, value: &str)

Internal entity declaration in DTD. Read more
Source§

fn external_entity_decl( &mut self, name: &str, public_id: Option<&str>, system_id: &URIStr, )

External entity declaration in DTD. Read more
Source§

fn unparsed_entity_decl( &mut self, name: &str, public_id: Option<&str>, system_id: &URIStr, notation_name: &str, )

Unparsed external entity declaration in DTD. Read more
Source§

fn notation_decl( &mut self, name: &str, public_id: Option<&str>, system_id: Option<&URIStr>, )

Notation declaration in DTD. Read more
Source§

fn start_cdata(&mut self)

CDATA section start event. Read more
Source§

fn end_cdata(&mut self)

CDATA section end event. Read more
Source§

fn start_dtd( &mut self, name: &str, public_id: Option<&str>, system_id: Option<&URIStr>, )

DTD start event. Read more
Source§

fn end_dtd(&mut self)

DTD end event. Read more
Source§

fn start_entity(&mut self, name: &str)

Parsed entity start event. Read more
Source§

fn end_entity(&mut self)

Parsed entity end event. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.