Я думаю, мне просто нужна небольшая помощь, потому что я хожу по кругу с небольшой проблемой здесь.
Это отчет с сервера развертывания, на котором хранятся файлы в специальном формате xml.
Файл выглядит так:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<feed xml:base="XXXXX:9801/MDTMonitorData/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">Computers</title>
<id>XXXXXXX:9801/MDTMonitorData/Computers/</id>
<updated>2020-02-26T06:49:07Z</updated>
<link rel="self" title="Computers" href="Computers" />
<entry>
<id>http://XXXXXXX:9801/MDTMonitorData/Computers(72)</id>
<title type="text"></title>
<updated>2020-02-26T07:24:45Z</updated>
<author>
<name />
</author>
<link rel="edit" title="Computer" href="Computers(72)" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ComputerIdentities" type="application/atom+xml;type=feed" title="ComputerIdentities" href="Computers(72)/ComputerIdentities" />
<category term="MDT_MonitorModel.Computer" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml">
<m:properties>
<d:Name>NB-DE-00011</d:Name>
<d:PercentComplete m:type="Edm.Int16">100</d:PercentComplete>
<d:Settings m:null="true" />
<d:Warnings m:type="Edm.Int32">0</d:Warnings>
<d:Errors m:type="Edm.Int32">0</d:Errors>
<d:DeploymentStatus m:type="Edm.Int32">3</d:DeploymentStatus>
<d:StartTime m:type="Edm.DateTime">2020-02-25T07:33:15.797</d:StartTime>
<d:EndTime m:type="Edm.DateTime">2020-02-25T08:02:26.653</d:EndTime>
<d:ID m:type="Edm.Int32">72</d:ID>
<d:UniqueID m:type="Edm.Guid">509c118c-3489-42c0-91ed-bf5695872a28</d:UniqueID>
<d:CurrentStep m:type="Edm.Int32">91</d:CurrentStep>
<d:TotalSteps m:type="Edm.Int32">91</d:TotalSteps>
<d:StepName></d:StepName>
<d:LastTime m:type="Edm.DateTime">2020-02-25T08:02:26.653</d:LastTime>
<d:DartIP m:null="true" />
<d:DartPort m:null="true" />
<d:DartTicket m:null="true" />
<d:VMHost m:null="true" />
<d:VMName m:null="true" />
</m:properties>
</content>
</entry>
<entry>
<id>http://XXXXXXX:9801/MDTMonitorData/Computers(71)</id>
<title type="text"></title>
<updated>2020-02-26T07:24:45Z</updated>
<author>
<name />
</author>
<link rel="edit" title="Computer" href="Computers(71)" />
<link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ComputerIdentities" type="application/atom+xml;type=feed" title="ComputerIdentities" href="Computers(71)/ComputerIdentities" />
<category term="MDT_MonitorModel.Computer" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
<content type="application/xml">
<m:properties>
<d:Name>NB-DE-00210</d:Name>
<d:PercentComplete m:type="Edm.Int16">100</d:PercentComplete>
<d:Settings m:null="true" />
<d:Warnings m:type="Edm.Int32">0</d:Warnings>
<d:Errors m:type="Edm.Int32">0</d:Errors>
<d:DeploymentStatus m:type="Edm.Int32">3</d:DeploymentStatus>
<d:StartTime m:type="Edm.DateTime">2020-02-24T09:01:43.483</d:StartTime>
<d:EndTime m:type="Edm.DateTime">2020-02-24T09:30:54.38</d:EndTime>
<d:ID m:type="Edm.Int32">71</d:ID>
<d:UniqueID m:type="Edm.Guid">0b3cff76-b983-4ac4-bc13-cd36c25318db</d:UniqueID>
<d:CurrentStep m:type="Edm.Int32">91</d:CurrentStep>
<d:TotalSteps m:type="Edm.Int32">91</d:TotalSteps>
<d:StepName></d:StepName>
<d:LastTime m:type="Edm.DateTime">2020-02-24T09:30:54.63</d:LastTime>
<d:DartIP m:null="true" />
<d:DartPort m:null="true" />
<d:DartTicket m:null="true" />
<d:VMHost m:null="true" />
<d:VMName m:null="true" />
</m:properties>
</content>
</entry>
К сожалению, я не нашел разумного способа поместить все свойства из каждой записи в список.
До сих пор я создал класс с атрибутами, и теперь я хотел бы поместить это дерьмо в список.
План: предположим, что список называется: mdtobject
MDTObject[0]:
Attr: Name | Value: NB-DE..
Attr:PercentComplete | Value 100
и так один..