Skip to main content

write_pdbml

Function write_pdbml 

Source
pub fn write_pdbml(document: &Document) -> Result<String, PdbmlError>
Expand description

Writes one lossless document as PDBML/XML.

Both CIF missing sentinels map to XML Schema nil, because PDBML has one missing representation rather than CIF’s two distinct sentinels.

§Errors

Returns an error when the document has other than one datablock or XML generation fails.