XML-NAMESPACE-PREFIX and XML-NNAMESPACE-PREFIX
If the XMLPARSE(XMLSS)
option is in effect,
the XML parser sets the XML-NAMESPACE-PREFIX
special
register or the XML-NNAMESPACE-PREFIX
special register
for a NAMESPACE-DECLARATION
XML event that also defines
a namespace prefix, or if an element name or attribute name in a namespace
is prefixed.
The parser sets XML-NNAMESPACE-PREFIX
if the XML
document is in a national data item, or the RETURNING NATIONAL
phrase
is specified in the XML PARSE
statement. Otherwise,
the parser sets XML-NAMESPACE-PREFIX
.
The special registers XML-NAMESPACE-PREFIX
and XML-NNAMESPACE-PREFIX
are
mutually exclusive: If the parser sets XML-NAMESPACE-PREFIX
, XML-NNAMESPACE-PREFIX
is
empty with length zero. If the parser sets XML-NNAMESPACE-PREFIX
, XML-NAMESPACE-PREFIX
is
empty with length zero.
To determine the number of character encoding units in XML-NNAMESPACE-PREFIX
,
use the LENGTH
intrinsic function; for example: FUNCTION LENGTH(XML-NNAMESPACE-PREFIX)
. To determine
the number of bytes in XML-NNAMESPACE-PREFIX
, use
special register LENGTH OF XML-NNAMESPACE-PREFIX
.
The number of character encoding units differs
from the number of bytes.
To determine the number of bytes in XML-NAMESPACE-PREFIX
,
use either special register LENGTH OF XML-NAMESPACE-PREFIX
or
the LENGTH
intrinsic function; each returns the number
of bytes.
The XML namespace-prefix special registers are undefined outside the processing procedure.