For simple types, the type-local-name function returns a name such as "ID" or "ENTITY". For complex XSD types that have the name attribute specified, the type-local-name returns a nonqualified name such as "Class". Nameless types cause the function to return an empty string.
The following sample expression selects all nodes with the XSD built-in primitive data type "string".
"//*[ms:type-local-name()='string')]"