xmlWriterWriteElement

SYNOPSIS

int xmlWriterWriteElement(xmlWriter writer, string name,
            string content [, string prefix [, string URI]])

Parameters:

  • writer - the xmlWriter

  • name - the name of the element

  • content - the content of the element

  • prefix (optional) - the namespace prefix of the element

  • URI (optional) - the namespace URI for prefix

Returns:

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


DESCRIPTION
xmlWriterWriteElement() writes out a whole element. It is the same as calling

xmlWriterStartElement($writer, $name [, $prefix [, $uri]] )
    xmlWriterWrite($writer, $content)
    xmlWriterEndElement($writer)


EXAMPLE

<$ret = (xmlWriterWriteElement($writer, 'item',
                    'Look at me!'))>


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