Appearance
ReadXml Method
Definition
- Namespace:
JASE.TestAnalysis - Assembly:
JASE.TestAnalysis.dll
CoberturaReport ReadXml(string xml, CoverageOptions options = null)
csharp
CoberturaReport ReadXml(string xml, CoverageOptions options = null)Reads a Cobertura coverage report from a string containing XML content.
Parameters
| Name | Description |
|---|---|
options | Optional coverage reader options. If , default options are created. |
xml | A string containing Cobertura-formatted XML content. |
Returns
A parsed CoberturaReport populated from the supplied XML content.
Remarks
This overload encodes the supplied XML string as UTF-8 and parses it using the stream-based reader.
This method uses a forward-only XmlReader with DTD processing disabled and comments and insignificant whitespace ignored.
After parsing, package totals are rolled into report totals and report-wide rates are recomputed.