Skip to content

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 ​

NameDescription
optionsOptional coverage reader options. If , default options are created.
xmlA 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.