Tests if the specified XML name is the name of one of the XSD (XML Schema Definition) language predefined types.

The following table shows the qualified names of all those types (where "xs" prefix is bound to the namespace URI:
http://www.w3.org/2001/XMLSchema):

xs:anySimpleType
xs:anyType
xs:anyURI
xs:base64Binary
xs:boolean
xs:byte
xs:date
xs:dateTime
xs:decimal
xs:double
xs:duration
xs:ENTITIES
xs:ENTITY
xs:float
xs:gDay
xs:gMonth
xs:gMonthDay
xs:gYear
xs:gYearMonth
xs:hexBinary
xs:ID
xs:IDREF
xs:IDREFS
xs:int
xs:integer
xs:language
xs:long
xs:Name
xs:NCName
xs:negativeInteger
xs:NMTOKEN
xs:NMTOKENS
xs:nonNegativeInteger
xs:nonPositiveInteger
xs:normalizedString
xs:NOTATION
xs:positiveInteger
xs:QName
xs:short
xs:string
xs:time
xs:token
xs:unsignedByte
xs:unsignedInt
xs:unsignedLong
xs:unsignedShort
In particular, this function is used in "XSDDoc" templates to avoid "documenting" XSD predefined types.

Parameters:

qName

The QName object which represents the XML name to test.
typeName
The local name of an XSD predefined type.

When specified, the function tests if qName represents exactly this type.

When this parameter is not specified, the function tests if qName represents any of the XSD predefined types.

Returns:

true if the specified XML name is an XSD predefined type name (any or exactly the one specified in typeName parameter); false otherwise.

See Also:

Generator Object Model | Object Types | QName;
QName(), toQName()

${include ../../../refs/qname_type_heading.htm}

${include ../../../gom/QName/doc.htm}