Thunderstone Software Document Search, Retrieval, and Management
Search:
Vortex Manual
 

xmlTreeGetEncoding

 

SYNOPSIS

    string xmlTreeGetEncoding(xmlTree tree)

Parameters:

  • doc - the xmlDoc object

Returns:

  • The encoding of the document.


DESCRIPTION
xmlTreeGetEncoding() returns the character encoding used in the document, a set by the xml declaration, such as:

<?xml version="1.0" encoding="ISO-8859-1"?>

If no encoding is given in a declaration (or no declaration is present), then xmlTreeGetEncoding will return nothing (although UTF-8 is assumed as the encoding, as defined in the XML spec).


EXAMPLE

    <$encoding = (xmlTreeGetEncoding($doc))>


SEE ALSO
xmlTreeGetVersion


Copyright © Thunderstone Software     Last updated: Mon Feb 18 10:28:15 EST 2013
 
Home   ::   Products   ::   Solutions   ::   How to Buy   ::   Support   ::   Contact Us   ::   News   ::   About
Copyright © 2013 Thunderstone Software LLC. All rights reserved.