void GenerateReadPrimitiveElement (XmlTypeMapping typeMap, string isNullable)
{
WriteLine ("XmlQualifiedName t = GetXsiType();");
WriteLine ("if (t == null) t = new XmlQualifiedName (" + GetLiteral(typeMap.XmlType) + ", " + GetLiteral(typeMap.Namespace) + ");");
WriteLine ("return " + GetCast (typeMap.TypeData, "ReadTypedPrimitive (t)") + ";");
}