xmlTreeGetVersion

SYNOPSIS

string xmlTreeGetVersion(xmlDoc doc)

Parameters:

  • doc - the xmlDoc to get the XML version from

Returns:

  • the XML version of the data


DESCRIPTION
xmlTreeGetVersion() 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, xmlTreeGetVersion() would return 1.0.


EXAMPLE

<$version = (xmlTreeGetVersion($doc))>


SEE ALSO
xmlTreeGetEncoding


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