xmlReaderGetLang

 

SYNOPSIS

string xmlReaderGetLang(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • the value of the special xml:lang attribute for the current element(if any).


DESCRIPTION
xml:lang is a special attribute defined by the XML spec for defining the language of elements. xmlReaderGetLang() returns the defined language for the current element, whether it's defined there or inherited from a parent.

See the Language Identification section of the XML spec for more information:

http://www.w3.org/TR/REC-xml/#sec-lang-tag


EXAMPLE

<$lang = (xmlReaderGetLang($reader))>


SEE ALSO
xmlReaderGetEncoding, xmlReaderGetVersion


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