elixlsx v0.3.1 Elixlsx.XMLTemplates
Summary
Functions
Returns the XML content for single sheet
Return the data for /xl/workbook.xml
get the content of the styles.xml file. the WorkbookCompInfo struct must be computed before calling this, (especially CellStyleDB.register_all)
There are 5 characters that should be escaped in XML (<,>,”,’,&), but only 2 of them must be escaped. Saves a couple of CPU cycles, for the environment
Escape characters for embedding in XML documents
Functions
Returns the XML content for single sheet.
make_xl_rel_sheets([Elixlsx.Compiler.SheetCompInfo.t, ...]) :: String.t
get the content of the styles.xml file. the WorkbookCompInfo struct must be computed before calling this, (especially CellStyleDB.register_all)
make_xl_workbook_xml_sheet_entry({Elixlsx.Sheet.t, Elixlsx.Compiler.SheetCompInfo.t}) :: String.t
There are 5 characters that should be escaped in XML (<,>,”,’,&), but only 2 of them must be escaped. Saves a couple of CPU cycles, for the environment.
Example
iex> Elixlsx.XMLTemplates.minimal_xml_text_escape "Only '&' and '<' are escaped here, '\"' & '>' & \"'\" are not."
"Only '&' and '<' are escaped here, '\"' & '>' & \"'\" are not."