int xmlWriterWriteRaw(xmlWriter writer, string content)
content- the raw content to write to
xmlWriterWriteRaw() writes the string
writer, without applying any markup. This is useful if you
have some data that is already XML escaped, such as
5 > 3
and you want to write it to the file exactly as that.
<$ret = (xmlWriterWriteRaw($writer,
'is 5 > three? Yup!'))>
xmlWriterWriteRaw() will write whatever you give it, including
invalid XML markup. If you call something like
<$ret = (xmlWriterWriteRaw($writer, '<&wheeeee!<!&&!<'))>
you will be left with an XML file that is not well-formed (assuming you
weren't already in a CDATA section, of course).
xmlWriterWrite would properly escape the content for storage.