xmlReaderGetLocalName

 

SYNOPSIS

string xmlReaderGetLocalName(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • the local name of the current element or attribute


DESCRIPTION
xmlReaderGetLocalName() returns the local name of the current element or attribute, which is the name without any namespace prefix on it.

For example, calling xmlReaderGetLocalName() on the elements <item> and <myns:item> will both return item. It is useful for comparing things in a namespace-aware manner.


EXAMPLE

<$localname = (xmlReaderGetLocalName($reader))>


SEE ALSO
xmlReaderGetNsURI, xmlReaderGetNsPrefix


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