[−][src]Function xml_dom::level2::ext::dom_impl::get_implementation_ext
pub fn get_implementation_ext(
) -> &'static dyn DOMImplementation<NodeRef = RefNode>
Return a reference to an instance of this DOMImplementation
implementation.
This function gets around the DOM bootstrap issue, the implementation
method on the
Document
trait requires an instance of Document
; however, the
create_document
method on DOMImplementation
requires an instance from implementation
.
Example
use xml_dom::level2::get_implementation; let implementation = get_implementation(); let mut document_node = implementation .create_document(Some("http://www.w3.org/1999/xhtml"), Some("html"), None) .unwrap();