Table of Contents

Class XmlExtensions

Namespace
AngleSharp.Text
Assembly
AngleSharp.dll

Useful helpers for the XML parser.

public static class XmlExtensions
Inheritance
XmlExtensions
Inherited Members

Methods

IsPubidChar(char)

Determines if the given character is a legal character for the public id field: http://www.w3.org/TR/REC-xml/#NT-PubidChar

public static bool IsPubidChar(this char c)

Parameters

c char

The character to examine.

Returns

bool

The result of the test.

IsQualifiedName(string)

Determines if the given string is a valid qualified name.

public static bool IsQualifiedName(this string str)

Parameters

str string

The string to examine.

Returns

bool

The result of the test.

IsValidAsCharRef(int)

Checks if the given integer would be a valid character.

public static bool IsValidAsCharRef(this int chr)

Parameters

chr int

The integer to examine.

Returns

bool

True if the integer would indeed be valid.

IsXmlChar(char)

Checks if the given char is a valid character.

public static bool IsXmlChar(this char chr)

Parameters

chr char

The char to examine.

Returns

bool

True if the char would indeed be valid.

IsXmlName(char)

Determines if the given character is a name character for XML. http://www.w3.org/TR/REC-xml/#NT-NameChar

public static bool IsXmlName(this char c)

Parameters

c char

The character to examine.

Returns

bool

The result of the test.

IsXmlName(string)

Determines if the given string is a valid (local or qualified) name.

public static bool IsXmlName(this string str)

Parameters

str string

The string to examine.

Returns

bool

The result of the test.

IsXmlNameStart(char)

Determines if the given character is a legal name start character for XML. http://www.w3.org/TR/REC-xml/#NT-NameStartChar

public static bool IsXmlNameStart(this char c)

Parameters

c char

The character to examine.

Returns

bool

The result of the test.