xmlWriterWritePI

SYNOPSIS

int xmlWriterWritePI(xmlWriter writer, string target,
            string content)

Parameters:

  • writer - the xmlWriter

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

  • content - the contents of the processing instruction

Returns:

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


DESCRIPTION
xmlWriterWritePI() writes a complete processing instruction to writer. It is the same as calling

xmlWriterStartPI($writer, $target)
    xmlWriterWrite($content)
    xmlWriterEndPI($writer)


EXAMPLE

<$ret = (xmlWriterWritePI($writer, 'xml-stylesheet',
      'type="text/xsl" href="default.xsl"'))>


SEE ALSO
xmlWriterStartPI, xmlWriterWrite, xmlWriterEndPI


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