Class XmlSpecsHelper
Static Helper Class which contains a set of Functions which model Name and Character validations as laid
out in the W3C XML and XML Namespaces specification.
Inheritance
System.Object
XmlSpecsHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: dotNetRDF.dll
Syntax
public static class XmlSpecsHelper
Fields
|
Improve this Doc
View Source
NamespaceXml
Namespace for XML.
Declaration
public const string NamespaceXml = "http://www.w3.org/XML/1998/namespace"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NamespaceXmlNamespaces
Namespace for XML Namespaces.
Declaration
public const string NamespaceXmlNamespaces = "http://www.w3.org/2000/xmlns/"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
NamespaceXmlSchema
Namespace for XML Schema.
Declaration
public const string NamespaceXmlSchema = "http://www.w3.org/2001/XMLSchema#"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SupportedTypes
Array of Constants for Data Types that are supported by the Literal Node CompareTo method.
Declaration
public static string[] SupportedTypes
Field Value
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeAnyUri
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeAnyUri = "http://www.w3.org/2001/XMLSchema#anyURI"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeBase64Binary
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeBase64Binary = "http://www.w3.org/2001/XMLSchema#base64Binary"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeBoolean
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeBoolean = "http://www.w3.org/2001/XMLSchema#boolean"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeByte
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeByte = "http://www.w3.org/2001/XMLSchema#byte"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDate
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDate = "http://www.w3.org/2001/XMLSchema#date"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDateTime
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDateTime = "http://www.w3.org/2001/XMLSchema#dateTime"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDayTimeDuration
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDayTimeDuration = "http://www.w3.org/2001/XMLSchema#dayTimeDuration"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDecimal
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDecimal = "http://www.w3.org/2001/XMLSchema#decimal"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDouble
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDouble = "http://www.w3.org/2001/XMLSchema#double"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeDuration
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeDuration = "http://www.w3.org/2001/XMLSchema#duration"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeFloat
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeFloat = "http://www.w3.org/2001/XMLSchema#float"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeHexBinary
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeHexBinary = "http://www.w3.org/2001/XMLSchema#hexBinary"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeInt
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeInt = "http://www.w3.org/2001/XMLSchema#int"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeInteger
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeInteger = "http://www.w3.org/2001/XMLSchema#integer"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeLong
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeLong = "http://www.w3.org/2001/XMLSchema#long"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeNegativeInteger
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeNegativeInteger = "http://www.w3.org/2001/XMLSchema#negativeInteger"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeNonNegativeInteger
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeNonNegativeInteger = "http://www.w3.org/2001/XMLSchema#nonNegativeInteger"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeNonPositiveInteger
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeNonPositiveInteger = "http://www.w3.org/2001/XMLSchema#nonPositiveInteger"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypePositiveInteger
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypePositiveInteger = "http://www.w3.org/2001/XMLSchema#positiveInteger"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeShort
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeShort = "http://www.w3.org/2001/XMLSchema#short"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeString
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeString = "http://www.w3.org/2001/XMLSchema#string"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeTime
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeTime = "http://www.w3.org/2001/XMLSchema#time"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeUnsignedByte
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeUnsignedByte = "http://www.w3.org/2001/XMLSchema#unsignedByte"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeUnsignedInt
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeUnsignedInt = "http://www.w3.org/2001/XMLSchema#unsignedInt"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeUnsignedLong
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeUnsignedLong = "http://www.w3.org/2001/XMLSchema#unsignedLong"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
XmlSchemaDataTypeUnsignedShort
Data Type Uri Constants for XML Schema Data Types.
Declaration
public const string XmlSchemaDataTypeUnsignedShort = "http://www.w3.org/2001/XMLSchema#unsignedShort"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Date Time Formatting string which meets the specified format for xsd:date.
Declaration
public const string XmlSchemaDateFormat = "yyyy-MM-ddK"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Date Time Formatting string which meets the specified format for xsd:dateTime.
Declaration
public const string XmlSchemaDateTimeFormat = "yyyy-MM-dd\\THH:mm:ss.ffffffK"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Date Time Formatting string which meets the specified format for xsd:dateTime, this formatting string is imprecise in the sense that it does not preserve the fractional seconds.
Declaration
public const string XmlSchemaDateTimeFormatImprecise = "yyyy-MM-dd\\THH:mm:ssK"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Date Time Formatting string which meets the the specified format for xsd:time.
Declaration
public const string XmlSchemaTimeFormat = "HH:mm:ss.ffffffK"
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Date Time Formatting string which meets the the specified format for xsd:time, this formatting string is imprecise in the sense that it does not preserve the fractional seconds.
Declaration
public const string XmlSchemaTimeFormatImprecise = "HH:mm:ssK"
Field Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
GetCompatibleSupportedDataType(String, String)
Gets the Compatible Supported Data Type for the two Data Types.
Declaration
public static string GetCompatibleSupportedDataType(string type1, string type2)
Parameters
Type |
Name |
Description |
System.String |
type1 |
A Data Type. |
System.String |
type2 |
A Data Type. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetCompatibleSupportedDataType(String, String, Boolean)
Gets the Compatible Supported Data Type for the two Data Types.
Declaration
public static string GetCompatibleSupportedDataType(string type1, string type2, bool widen)
Parameters
Type |
Name |
Description |
System.String |
type1 |
A Data Type. |
System.String |
type2 |
A Data Type. |
System.Boolean |
widen |
Whether the compatible type should be the wider type. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetCompatibleSupportedDataType(INode, INode)
Gets the Compatible Supported Data Type assuming the two Nodes are Literals with support types and that those types are compatible.
Declaration
public static string GetCompatibleSupportedDataType(INode x, INode y)
Parameters
Type |
Name |
Description |
INode |
x |
A Node. |
INode |
y |
A Node. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetCompatibleSupportedDataType(INode, INode, Boolean)
Gets the Compatible Supported Data Type assuming the two Nodes are Literals with support types and that those types are compatible.
Declaration
public static string GetCompatibleSupportedDataType(INode x, INode y, bool widen)
Parameters
Type |
Name |
Description |
INode |
x |
A Node. |
INode |
y |
A Node. |
System.Boolean |
widen |
Whether the compatible type should be the wider type. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
GetSupportedDataType(INode)
Gets the Data Type Uri of the given Node if it has a supported type.
Declaration
public static string GetSupportedDataType(INode n)
Parameters
Type |
Name |
Description |
INode |
n |
Node. |
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
IsName(String)
Returns whether a String is a Name as defined by the W3C XML Specification.
Declaration
public static bool IsName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
String to test. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNameChar(Char)
Returns whether a Character is a NameChar as defined by the W3C XML Specification.
Declaration
public static bool IsNameChar(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
Character to Test. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNameStartChar(Char)
Returns whether a Character is a NameChar as defined by the W3C XML Specification.
Declaration
public static bool IsNameStartChar(char c)
Parameters
Type |
Name |
Description |
System.Char |
c |
Character to test. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsNCName(String)
Returns whether a String is a NCName as defined by the W3C XML Namespaces Specification.
Declaration
public static bool IsNCName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
String to test. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSupportedType(String)
Returns whether the given Type refers to one of the types supported by the
LiteralNode CompareTo method.
Declaration
public static bool IsSupportedType(string type)
Parameters
Type |
Name |
Description |
System.String |
type |
Data Type Uri. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSupportedType(Uri)
Returns whether the given Type refers to one of the types supported by the
LiteralNode CompareTo method.
Declaration
public static bool IsSupportedType(Uri type)
Parameters
Type |
Name |
Description |
System.Uri |
type |
Data Type Uri. |
Returns
Type |
Description |
System.Boolean |
|