xmlReaderGetVersion

SYNOPSIS

string xmlReaderGetVersion(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • the XML version of the data


DESCRIPTION
xmlReaderGetVersion() returns the XML version used by the XML data, as defined in the XML declaration:

<?xml version="1.0" encoding="UTF-8"?>
<top>
    ...

For this data, xmlReaderGetVersion() would return 1.0.


EXAMPLE

<$version = (xmlReaderGetVersion($reader))>


SEE ALSO
xmlReaderGetEncoding, xmlReaderGetLang


Copyright © Thunderstone Software     Last updated: Oct 24 2023
Copyright © 2024 Thunderstone Software LLC. All rights reserved.