xmlReaderGetType

 

SYNOPSIS

string xmlReaderGetType(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • the type of the current node


DESCRIPTION
xmlReaderGetType() returns the type of whatever it is that the xmlReader is currently on. The possible values are:

  • XML_ELEMENT_NODE

  • XML_ATTRIBUTE_NODE

  • XML_TEXT_NODE

  • XML_CDATA_NODE

  • XML_ENTITY_REF_NODE

  • XML_ENTITY_NODE

  • XML_PI_NODE

  • XML_COMMENT_NODE

  • XML_DOCUMENT_NODE

  • XML_DOCUMENT_TYPE_NODE

  • XML_DOCUMENT_FRAG_NODE

  • XML_NOTATION_NODE

  • XML_WHITESPACE_NODE

  • XML_SIGNIFICANT_WHITESPACE_NODE

  • XML_END_ELEMENT_NODE

  • XML_END_ENTITY_NODE

  • XML_DECLARATION_NODE


EXAMPLE

<$type = (xmlReaderGetType($reader))>


SEE ALSO
xmlReaderGetBytesConsumed, xmlReaderGetColumn, xmlReaderGetDepth, xmlReaderGetLine, xmlReaderIsEmptyElement


Copyright © Thunderstone Software     Last updated: Sep 25 2019
Copyright © 2019 Thunderstone Software LLC. All rights reserved.