xmlWriterStartPI

SYNOPSIS

int xmlWriterStartPI(xmlWriter writer, string target)

Parameters:

  • writer - the xmlWriter

  • target - the application to which the processing instruction is directed

Returns:

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


DESCRIPTION
xmlWriterStartPI() starts a new processing instruction in writer. If this is going to be a simple 'start pi-write content-end pi' pattern, you can do it with one call to xmlWriterWritePI() instead.


EXAMPLE

<$ret = (xmlWriterStartPI($writer, 'xsl-stylesheet'))>


SEE ALSO
xmlWriterWrite, xmlWriterEndPI, xmlWriterWritePI


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.