public final class NSUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
generatePrefix(String namespaceURI)
Generate a namespace prefix for the given namespace URI.
|
public static String generatePrefix(String namespaceURI)
Using hash based prefixes has the advantage of reducing the number of entries created in the symbol table of the parser on the receiving side, assuming that the symbol table is reused to parse multiple documents (which is a common optimization).
namespaceURI - the namespace URI to generate a prefix for; must not be nullCopyright © The Apache Software Foundation. All Rights Reserved.