Skip to main content

render_xml

Function render_xml 

Source
pub fn render_xml(
    files: &[(Utf8PathBuf, &str, bool, usize)],
    repo_name: &str,
) -> String
Expand description

Render a set of packed files in the primary XML format.

Each file is wrapped in a <file> element with path, tokens, and truncated attributes. Content is wrapped in <![CDATA[...]]> blocks for readability; files containing ]]> are split across multiple CDATA sections.

Output is guaranteed to be well-formed XML.