XmlEventWriter::writeAttribute

API Ref

#include <DbXml.hpp>

virtual void XmlEventWriter::writeAttribute(const unsigned char *localName, const unsigned char *prefix, const unsigned char *uri, const unsigned char *value, bool isSpecified)


Description: XmlEventWriter::writeAttribute

Write a single attribute to the XmlEventWriter. Namespace declarations are written as normal attributes.

Parameters

localName
Local name of the attribute.
prefix
Namespace prefix, or NULL.
uri
Namespace uri, or NULL.
value
The attribute's value.
isSpecified
True if the attribute is specified, rather than defaulted from a DTD or schema.

Errors

The XmlEventWriter::writeAttribute method may fail and throw XmlException, encapsulating one of the following non-zero errors:

EVENT_ERROR
An error occurred during processing of an XmlEventWriter object. Most likely the error is attempting to write a type or value that is not valid in the current state of the object.

APIRef

Copyright (c) 1996,2007 Oracle. All rights reserved.