JaedenRuiner
Well-known member
- Joined
- Aug 13, 2007
- Messages
- 340
- Programming Experience
- 10+
For the XmlSchema, there are many situations where you are defining the "type" of an element or attribute. however, every such example that shows how to use these is formatted in much like this:
Now, far be it for me to judge, but it seems that with the XmlTypeCode enumeration in place, ins't there some listing or command to get the "qualifed" name of the simple basic types from the standard namespace. the xmlschema namespace as above has a slew of default types, but it appears a bit...dodgey to require a " " input of the type name. because "String" is different that "string", etc.
Just wondering if something like that exists so I can just do a:
VB.NET:
e = New Xml.Schema.XmlSchemaElement()
e.Name = "MyElem"
e.SchemaTypeName = new Xml.XmlQualifiedName("string", "http://www.w3.org/2001/XMLSchema")
Now, far be it for me to judge, but it seems that with the XmlTypeCode enumeration in place, ins't there some listing or command to get the "qualifed" name of the simple basic types from the standard namespace. the xmlschema namespace as above has a slew of default types, but it appears a bit...dodgey to require a " " input of the type name. because "String" is different that "string", etc.
Just wondering if something like that exists so I can just do a:
VB.NET:
e.SchemaTypeName = XSTypeName(XmlTypeCode.Integer)
[code]
(I am resigned to have to write this myself, i'm just checking before I do)
thanks