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: Dec 10 2018
Copyright © 2019 Thunderstone Software LLC. All rights reserved.