Struct xml_builder::XML [−][src]
pub struct XML { /* fields omitted */ }
Expand description
Structure representing a XML document. It must be used to create a XML document.
Implementations
Does not render XML header for this document.
Can be used in case of a custom XML implementation such as XMLTV.
Arguments
asked
- A boolean value indicating whether we want header rendering.
Sets the XML version attribute field.
Arguments
version
- An enum value representing the new version to use for the XML.
Sets the XML encoding attribute field.
Arguments
encoding
- A String representing the encoding to use for the document.
Sets the header attribute sort.
Arguments
should_sort
- A boolean value indicating whether we want attributes to be sorted.
Sets a custom XML header.
Be careful, no syntax and semantic verifications are made on this header.
Arguments
custom_header
- A String containing the new header value to set for the XML.
Sets the XML document root element.
Arguments
element
- An XMLElement qualified as root for the XML document.
Sets the XML indentation.
Setting a false
value will lower final XML document size.
Arguments
should_indent
- A boolean value indicating whether we want indentation for the document.