pub fn new(write: W) -> Result<Self, RdfXmlError> {
        let mut writer = Writer::new(write);
        writer.write_event(Event::Decl(BytesDecl::new(b"1.0", None, None)))?;
        let mut rdf_open = BytesStart::borrowed_name(b"rdf:RDF");
        rdf_open.push_attribute(("xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"));
        writer.write_event(Event::Start(rdf_open))?;
        Ok(Self {
            writer,
            current_subject: None,
        })
    }
/// Builds a new formatter from a `Write` implementation and starts writing
Builds a new formatter from a `Write` implementation and starts writing
Builds a new formatter from a ` Write ` implementation and starts writing
pub fn new(write: W) -> Result<Self, RdfXmlError> {
        let mut writer = Writer::new(write);
        writer.write_event(Event::Decl(BytesDecl::new(b"1.0", None, None)))?;
        let mut rdf_open = BytesStart::borrowed_name(b"rdf:RDF");
        rdf_open.push_attribute(("xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"));
        writer.write_event(Event::Start(rdf_open))?;
        Ok(Self {
            writer,
            current_subject: None,
        })
    }
pub fn new ( write : W ) -> Result < Self , RdfXmlError > { let mut writer = Writer :: new ( write ) ; writer . write_event ( Event :: Decl ( BytesDecl :: new ( b" " , None , None ) ) ) ? ; let mut rdf_open = BytesStart :: borrowed_name ( b" " ) ; rdf_open . push_attribute ( ( " " , " " ) ) ; writer . write_event ( Event :: Start ( rdf_open ) ) ? ; Ok ( Self { writer , current_subject : None , } ) }
Builds a new formatter from a `Write` implementation and starts writing
Builds a new formatter from a ` Write ` implementation and starts writing
write
W