xmlWriterStartAttribute

SYNOPSIS

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

Parameters:

  • writer - the xmlWriter

  • name - the name of the attribute

  • prefix (optional) - the XML namespace prefix for the attribute

  • URI (optional) - the URI for the namespace

Returns:

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


DESCRIPTION
xmlWriterStartAttribute() starts writing a new attribute to writer. If this will be a simple 'start attribute-write content-end attribute' sequence, you can do it with one call to xmlWriterWriteAttribute() instead.


EXAMPLE

<$ret = (xmlWriterStartAttribute($writer, 'price'))>


SEE ALSO
xmlWriterWrite, xmlWriterEndAttribute, xmlWriterWriteAttribute,


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