Свойство | Type | Description | |
---|---|---|---|
UUID_LENGTH | int |
Méthode | Description | |
---|---|---|
EscapeXml ( string value, bool forAttribute, bool escapeWhitespaces ) : string |
Serializes the node value in XML encoding. Its used for tag bodies and attributes.
|
|
IsXmlName ( string name ) : bool |
Simple check for valid XMLNames. Within ASCII range
|
|
IsXmlNameNs ( string name ) : bool |
Checks if the value is a legal "unqualified" XML name, as defined in the XML Namespaces proposed recommendation. These are XML names, except that they must not contain a colon.
|
|
NormalizeLangValue ( string value ) : string |
Normalize an xml:lang value so that comparisons are effectively case insensitive as required by RFC 3066 (which superceeds RFC 1766). The normalization rules:
|
Méthode | Description | |
---|---|---|
CheckUuidFormat ( string uuid ) : bool |
Check some requirements for an UUID:
|
|
InitCharTables ( ) : void |
Initializes the char tables for the chars 0x00-0xFF for later use, according to the XML 1.1 specification http://www.w3.org/TR/xml11
|
|
IsControlChar ( char c ) : bool | ||
IsInternalProperty ( string schema, string prop ) : bool | ||
IsNameChar ( char ch ) : bool |
Simple check if a character is a valid XML name char (every char except the first one), according to the XML Spec 1.1: http://www.w3.org/TR/xml11/#NT-NameChar
|
|
IsNameStartChar ( char ch ) : bool |
Simple check if a character is a valid XML start name char. All characters according to the XML Spec 1.1 are accepted: http://www.w3.org/TR/xml11/#NT-NameStartChar
|
|
RemoveControlChars ( string value ) : string |
Replaces the ASCII control chars with a space.
|
|
SplitNameAndValue ( string selector ) : string[] |
Split the name and value parts for field and qualifier selectors:
|
|
Utils ( ) : System.Text |
init char tables
|
public static EscapeXml ( string value, bool forAttribute, bool escapeWhitespaces ) : string | ||
value | string | a string |
forAttribute | bool | flag if string is attribute value (need to additional escape quotes) |
escapeWhitespaces | bool | Decides if LF, CR and TAB are escaped. |
Résultat | string |
public static IsXmlName ( string name ) : bool | ||
name | string | an XML Name |
Résultat | bool |
public static IsXmlNameNs ( string name ) : bool | ||
name | string | the value to check |
Résultat | bool |
public static NormalizeLangValue ( string value ) : string | ||
value | string | /// raw value |
Résultat | string |