SYNOPSISstring xmlReaderGetLang(xmlReader reader)
Parameters:
reader
- the xmlReader
object
Returns:
xml:lang
attribute for the
current element(if any).
DESCRIPTIONxml: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 ALSOxmlReaderGetEncoding
,
xmlReaderGetVersion