Method SetPrefix
SetPrefix(String, String)
Specify a preferred prefix for a Namespace URI.
Note that this method does not actually force the Namespace to be declared; to do that, use the ForceNSDecl(String) method as well.
Declaration
public virtual void SetPrefix(string uri, string prefix)
Parameters
Type | Name | Description |
---|---|---|
System.String | uri | The Namespace URI. |
System.String | prefix | The preferred prefix, or "" to select the default Namespace. |