PhoenixmlDb.Core
XsTypedString
Wrapper for XSD string-derived types (xs:normalizedString, xs:token, xs:language, xs:NMTOKEN, xs:Name, xs:NCName, xs:ID, xs:IDREF, xs:ENTITY) that preserves the declared type name for correct instance of semantics.
#XsTypedString
Namespace: PhoenixmlDb.Xdm
Wrapper for XSD string-derived types (xs:normalizedString, xs:token, xs:language, xs:NMTOKEN, xs:Name, xs:NCName, xs:ID, xs:IDREF, xs:ENTITY) that preserves the declared type name for correct instance of semantics.
The XSD string type hierarchy is: xs:string > xs:normalizedString > xs:token > { xs:language, xs:NMTOKEN, xs:Name } xs:Name > xs:NCName > { xs:ID, xs:IDREF, xs:ENTITY } Without this wrapper, all subtypes collapse to CLR string, making xs:normalizedString("x") instance of xs:token incorrectly return true.
#Constructors
##ctor(String,String)
Wrapper for XSD string-derived types (xs:normalizedString, xs:token, xs:language, xs:NMTOKEN, xs:Name, xs:NCName, xs:ID, xs:IDREF, xs:ENTITY) that preserves the declared type name for correct instance of semantics.
The XSD string type hierarchy is: xs:string > xs:normalizedString > xs:token > { xs:language, xs:NMTOKEN, xs:Name } xs:Name > xs:NCName > { xs:ID, xs:IDREF, xs:ENTITY } Without this wrapper, all subtypes collapse to CLR string, making xs:normalizedString("x") instance of xs:token incorrectly return true.
#Methods
#IsSubtypeOf(String)
Checks whether this typed string's type is the same as or a subtype of the given type name. Uses the XSD string derivation hierarchy.