22 lines
1.1 KiB
Markdown
22 lines
1.1 KiB
Markdown
|
|
---
|
||
|
|
source_files:
|
||
|
|
- Common/DTS.CommonCore/XMLUtils/DTSXMLFile.cs
|
||
|
|
- Common/DTS.CommonCore/XMLUtils/TestMetadataXml.cs
|
||
|
|
generated_at: "2026-04-17T16:24:00.271143+00:00"
|
||
|
|
model: "zai-org/GLM-5-FP8"
|
||
|
|
schema_version: 1
|
||
|
|
sha256: "86132ff00e2adebd"
|
||
|
|
---
|
||
|
|
|
||
|
|
# XMLUtils
|
||
|
|
|
||
|
|
### Purpose
|
||
|
|
This module provides XML parsing and file processing utilities for DTS-specific file formats. It handles reading metadata from XML files, parsing multi-document XML files (files containing multiple XML declarations), and aggregating test metadata from directory scans into a unified XDocument structure.
|
||
|
|
|
||
|
|
### Public Interface
|
||
|
|
|
||
|
|
**`DTS.Common.XMLUtils.DTSXMLFile`** (public static class)
|
||
|
|
- `static double GetItemsToCompleteCount(string fileName)` - Reads an XML file and extracts the `TotalItems` attribute value from the root node. Returns the value as a double using invariant culture parsing. Delegates file reading to `FileUtils.GetImportXmlNode()`.
|
||
|
|
|
||
|
|
**`DTS.Common.XMLUtils.TestMetadataXml`** (public static class)
|
||
|
|
- `static XDocument GetTestMetadataXml(string path, string file = "", string pattern = "")` - Scans for DTS XML files and aggregates their content into a single XDocument. If `file
|