xmlWriterWriteAttribute

SYNOPSIS

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

Parameters:

  • writer - the xmlWriter

  • name - the name of the attribute

  • content - the content of the attribute

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

  • URI (optional) - the namespace URI for prefix

Returns:

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


DESCRIPTION
xmlWriterWriteAttribute() writes out a whole attribute. It is the same as calling

xmlWriterStartAttribute($writer, $name [, $prefix [, $uri]] )
    xmlWriterWrite($writer, $content)
    xmlWriterEndAttribute($writer)


EXAMPLE

<$ret = (xmlWriterWriteAttribute($writer, 'price', 5))>


SEE ALSO
xmlWriterStartAttribute, xmlWriterWrite, xmlWriterEndAttribute


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