xmlReaderGetNsPrefix

SYNOPSIS

string xmlReaderGetNsPrefix(xmlReader reader)

Parameters:

  • reader - the xmlReader object

Returns:

  • the namespace prefix of the current element or attribute


DESCRIPTION
xmlReaderGetNsPrefix() returns the namespace prefix on the current element or attribute (if any). Calling it on <item> will return an empty string, but calling it on <myns:item> will return myns.


EXAMPLE

<$prefix = (xmlReaderGetNsPrefix($reader))>


SEE ALSO
xmlReaderGetLocalName, xmlReaderGetNsURI


Copyright © Thunderstone Software     Last updated: Apr 15 2024
Copyright © 2024 Thunderstone Software LLC. All rights reserved.