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: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.