SYNOPSISint xmlReaderIsEmptyElement(xmlReader reader)
Parameters:
reader - the xmlReader object
Returns:
<p/>) element
DESCRIPTIONxmlReaderIsEmptyElement() returns 1 if the current element is
empty, 0 if not and -1 in case of error. These are sometimes
called "standalone" or "self closing" elements.
More precisely, this is for testing whether elements will have an end element.
E.g. <a/> will be considered empty while <a></a> will not.
EXAMPLE<$isEmpty = (xmlReaderIsEmptyElement($reader))>
CAVEATS
Invoke xmlReaderIsEmptyElement when you're on the
XML_READER_TYPE_ELEMENT to tell whether it's an opening element of a
balanced pair or an empty element. If the reader is on
XML_READER_TYPE_END_ELEMENT, then xmlReaderIsEmptyElement will
always return 0, as you're on the closing element of a non-empty pair.
SEE ALSOxmlReaderGetColumn,
xmlReaderGetDepth,
xmlReaderGetLine,
xmlReaderGetType