xmlWriterStartElement

SYNOPSIS

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

Parameters:

  • writer - the xmlWriter

  • name - the name of the new element

  • prefix (optional) - the namespace prefix to use for this element. Default is no prefix.

  • URI (optional) - declare the prefix namespace to be URI

Returns:

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


DESCRIPTION
xmlWriterStartElement() starts a new element in writer. If this will be a simple 'start element-write content-end element' pattern, you can do it with one call to xmlWriterWriteElement() instead.


EXAMPLE

<$ret = (xmlWriterStartElement($writer, 'item'))>


SEE ALSO
xmlWriterWrite, xmlWriterEndElement, xmlWriterWriteElement


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