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