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: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.