xmlWriterWrite

SYNOPSIS

int xmlWriterWrite(xmlWriter writer, string content)

Parameters:

  • writer - the xmlWriter

  • content - the content you want to write

Returns:

  • the bytes written (may be 0 because of buffering) or -1 in case of error


DESCRIPTION
xmlWriterWrite() writes a string to the writer. This can be used for writing the contents of attributes, elements, comments, etc.

Note that the content is automatically XML-escaped. If you provided the content one & two, then one & two will be written to the output. If you have a string that is already XML-escaped, you can output it with xmlWriterWriteRaw().


EXAMPLE

<$ret = (xmlWriterWrite($writer, 'item content'))>


SEE ALSO
xmlWriterWriteRaw


Copyright © Thunderstone Software     Last updated: Oct 24 2023
Copyright © 2024 Thunderstone Software LLC. All rights reserved.