com.icl.saxon.om
Class Name
public abstract class Name
This class, a remnant of its former self, exists to contain some static methods
for validating the syntax of names.
static String | getLocalName(String qname) - Extract the local name from a QName.
|
static String | getPrefix(String qname) - Extract the prefix from a QName.
|
static boolean | isNCName(String name) - Validate whether a given string constitutes a valid NCName, as defined in XML Namespaces
|
static boolean | isQName(String name) - Validate whether a given string constitutes a valid QName, as defined in XML Namespaces
|
getLocalName
public static final String getLocalName(String qname)
Extract the local name from a QName. The QName is assumed to be valid.
getPrefix
public static final String getPrefix(String qname)
Extract the prefix from a QName. Note, the QName is assumed to be valid.
isNCName
public static boolean isNCName(String name)
Validate whether a given string constitutes a valid NCName, as defined in XML Namespaces
isQName
public static boolean isQName(String name)
Validate whether a given string constitutes a valid QName, as defined in XML Namespaces