xmlTreeSetNsPrefix

SYNOPSIS

string xmlTreeSetNsPrefix(xmlNs ns, string prefix)

Parameters:

  • ns - the xmlNs whose prefix you want to change

  • prefix - the new namespace prefix to use for ns

Returns:

  • the old namespace prefix for ns (if any)


DESCRIPTION
xmlTreeSetNsPrefix() changes the namespace prefix for an already-created namespace. Creating a namespace is done with xmlTreeNewNs().


EXAMPLE

<$oldPrefix = (xmlTreeSetNsPrefix($ns, 'myns'))>


SEE ALSO
xmlTreeSetNsURI, xmlTreeClearNs


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