[][src]Trait xml_dom::level2::ext::DOMImplementation

pub trait DOMImplementation: DOMImplementation {
    fn create_document_with_options(
        &self,
        namespace_uri: Option<&str>,
        qualified_name: Option<&str>,
        doc_type: Option<Self::NodeRef>,
        options: ProcessingOptions
    ) -> Result<Self::NodeRef>; }

This corresponds to the DOM DOMImplementation interface.

The instance used to create a document can be retrieved using the implementation method on Document. To fetch an implementation to create a document iun the first place use the function get_implementation.

Specification

The DOMImplementation interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.

Required methods

fn create_document_with_options(
    &self,
    namespace_uri: Option<&str>,
    qualified_name: Option<&str>,
    doc_type: Option<Self::NodeRef>,
    options: ProcessingOptions
) -> Result<Self::NodeRef>

Extension to the standard DOM create_document method that takes an options structure to control the processing of nodes. See the documentation for ProcessingOptions examples.

  • options of type ProcessingOptions: the options to be set for this document.
Loading content...

Implementors

Loading content...