C# Class Elmah.XmlText

XML 1.0 services.
Mostra file Open project: elmah/Elmah Class Usage Examples

Public Methods

Method Description
StripIllegalXmlCharacters ( string xml ) : string

Replaces illegal XML characters with a question mark (?).

Only strips illegal characters as per XML 1.0, not 1.1. See section 2.2 Characters of Extensible Markup Language (XML) 1.0 (Fourth Edition).

StripIllegalXmlCharacters ( string xml, string replacement ) : string

Replaces illegal XML characters with a replacement string, with the default being a question mark (?) if the replacement is null reference.

Only strips illegal characters as per XML 1.0, not 1.1. See section 2.2 Characters of Extensible Markup Language (XML) 1.0 (Fourth Edition).

Method Details

StripIllegalXmlCharacters() public static method

Replaces illegal XML characters with a question mark (?).
Only strips illegal characters as per XML 1.0, not 1.1. See section 2.2 Characters of Extensible Markup Language (XML) 1.0 (Fourth Edition).
public static StripIllegalXmlCharacters ( string xml ) : string
xml string
return string

StripIllegalXmlCharacters() public static method

Replaces illegal XML characters with a replacement string, with the default being a question mark (?) if the replacement is null reference.
Only strips illegal characters as per XML 1.0, not 1.1. See section 2.2 Characters of Extensible Markup Language (XML) 1.0 (Fourth Edition).
public static StripIllegalXmlCharacters ( string xml, string replacement ) : string
xml string
replacement string
return string