$cfwBuf
$cfwBuf : string
Enough of libxml's writer to generate a sitemap, and no more.
Not final: it exists so a contrib class can extend it.
writeRaw(string $content) : bool
Content written through verbatim, which is what separates this from text().
It still counts as content: the enclosing element has been given something, so its end tag stays on the same line the way it does after text().
| string | $content |
flush(bool $empty = true) : mixed
BYTES for a uri writer and the DOCUMENT for a memory one, which is libxml own split.
Returning the string in both cases would read as working: xmlsitemap ignores the return of its periodic flushes, so the file would simply stay empty until something read it.
| bool | $empty |
cfwEscape(string $s) : string
ONE escaper for both text and attributes, which is what libxml does.
The obvious split -- ampersand and angle brackets in text, plus the double quote only in attributes -- is wrong, measured: libxml escapes a double quote in TEXT content as well, and leaves a single quote alone in both. Guessing produced exactly that split and the oracle rejected it.
| string | $s |