Explore Mi puoi scrivere un metodo e le classe per poter leggere le informazioni all'interno dei… Save Share Download ▾ ReportMi puoi scrivere un metodo e le classe per poter leggere le informazioni all'interno dei file xml sincro come questi in c#?
-<sincro:PIndex sincro:language="it" xmlns:sincro="http://www.uni.com/U3011/sincro-v2/ " sincro:sincroVersion="2.0" sincro:uri="http://www.uni.com/U3011/sincro-v2/PIndex.xsd">
-sincro:SelfDescription
<sincro:ID sincro:scheme="IXCE">adb13c95946140e4a838940c9cb48573</sincro:ID>
-sincro:CreatingApplication
sincro:Name ARX-CE</sincro:Name>
sincro:Version 2.0</sincro:Version>
sincro:Producer ABLE Tech srl</sincro:Producer>
</sincro:CreatingApplication>
-<sincro:MoreInfo sincro:xmlSchema="LibroUnicoLavoro.xsd">
-<sincro:ExternalMetadata sincro:format="text/xml" sincro:extension=".xml" sincro:encoding="binary">
<sincro:ID sincro:scheme="IXCE">adb13c95946140e4a838940c9cb48573</sincro:ID>
sincro:Path LibroUnicoLavoro.xml</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">19a3ad359b80bd8cff3c52a864990d1e054fa010a1f1852182d9df6a1bf411f4</sincro:Hash>
</sincro:ExternalMetadata>
</sincro:MoreInfo>
</sincro:SelfDescription>
-sincro:PVolume
<sincro:ID sincro:scheme="IXCE">VDC_ID_adb13c95946140e4a838940c9cb48573</sincro:ID>
sincro:Label zz</sincro:Label>
sincro:Description zz</sincro:Description>
</sincro:PVolume>
-sincro:FileGroup
<sincro:ID sincro:scheme="IXCE">0-d6d41707-ff7d-4e8a-9899-b3fe2c9645c3</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">d6d41707ff7d4e8a9899b3fe2c9645c3</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/d6d41707ff7d4e8a9899b3fe2c9645c3.txt.p7m</sincro:Path>
Show full message · 370 lines Assistant2025-03-10 13:48 UTC Copy response
Copy first prompt
Details
Provider OpenAI
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Conversation date Mar 10, 2025
Added to archive Nov 16, 2026
ID 01m7h42j0rrwhktst46wqrj80gSource & license Imported from WildChat-4.8M (AI2) (source ). Imported records earn no Research Points.
Upstream record: 4a82d8336597915dc6ba9c5b56516577
Zhao et al., WildChat: 1M ChatGPT Interaction Logs in the Wild (ICLR 2024). Contains information from WildChat-4.8M, made available under the ODC Attribution License.
License: ODC-BY-1.0
<sincro:Hash sincro:hashFunction="SHA-256">c7bfcd723c8341be14d7d6b243ad60d0d4c1a869135e9686e07cfb6dcdfea39d</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-8e900a5b-b4f2-4874-8c6c-a9fcefd79ec0</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">8e900a5bb4f248748c6ca9fcefd79ec0</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/8e900a5bb4f248748c6ca9fcefd79ec0.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">4fbf4825556c32409d32e13860187176af16e83a829413b6b8b8a99658aa2c5c</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-b5817604-d2c4-4ab1-aef6-ee20f022564b</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">b5817604d2c44ab1aef6ee20f022564b</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/b5817604d2c44ab1aef6ee20f022564b.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">a8fb45b483838b52c21114f9fb442cefb9e5a60a150b9e79371f46943921df37</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">122c2482aa4e4bcb82d36ab40a7115b1</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/122c2482aa4e4bcb82d36ab40a7115b1.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">d61b7ae1ca669bf04753ffd3872be261bc07778ed3a5bf3f3e3f02bf6b068e83</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">aa47d7873695487598b2485a71d06788</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/aa47d7873695487598b2485a71d06788.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">e047df00204f1736b2cb9b9a0ca955fa7713842918c46ffd526f66fdb189e490</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-3f134d00-3ae6-4263-abc3-9e3b2568b5f4</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">3f134d003ae64263abc39e3b2568b5f4</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/3f134d003ae64263abc39e3b2568b5f4.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">3b49220d2652952b3f95a8bd74e031709e2a7dc37e70aa7e18b971e35eaf4351</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-f907d67e-7656-43bf-9422-3e2d5bee1c83</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">f907d67e765643bf94223e2d5bee1c83</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/f907d67e765643bf94223e2d5bee1c83.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">ccb531baf802d97693122a2afceda20a617c68a5d916972a3dca54409f80ec54</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-f6732ca3-f369-425d-94ab-2232a8f2fac5</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">f6732ca3f369425d94ab2232a8f2fac5</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/f6732ca3f369425d94ab2232a8f2fac5.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">301aad88e084a0c192a96b7dd583800a2a9f4ce9d2cc4432d2635ecff4ada250</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-58831a8f-3eec-4490-9c1b-b219c7391f25</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">58831a8f3eec44909c1bb219c7391f25</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/58831a8f3eec44909c1bb219c7391f25.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">e1b0ebef400e9bf233d49b028822a8b68094bd45a64c0cc6836870685afa7dfe</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">d9100255bba94c3ea818af09fda96038</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/d9100255bba94c3ea818af09fda96038.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">e1b0ebef400e9bf233d49b028822a8b68094bd45a64c0cc6836870685afa7dfe</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">d41fe9ebfccd437ca113f13cb6edc157</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/d41fe9ebfccd437ca113f13cb6edc157.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">f55bbe78fc87d6fc008e178f3fddb5e6f92000deffcb2b8efd0b2ad5e8d84e56</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-c7fc76a8-585c-41be-a942-a549d0e8a33c</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">c7fc76a8585c41bea942a549d0e8a33c</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/c7fc76a8585c41bea942a549d0e8a33c.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">430978569da256bbac0041686b0249382773f744778f29a3e43f68b7ef53e694</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">827b3dc0a2ca44359014126cea498e60</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/827b3dc0a2ca44359014126cea498e60.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">430978569da256bbac0041686b0249382773f744778f29a3e43f68b7ef53e694</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-a02e8565-396f-4e19-b84d-2ec4afc434ca</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">a02e8565396f4e19b84d2ec4afc434ca</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/a02e8565396f4e19b84d2ec4afc434ca.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">e096865e35bcc91d9c77b237389ce2def1f9e2c2b2e305b2521fd29cfe84cc36</sincro:Hash>
<sincro:ID sincro:scheme="IXCE">0-da4ef5ad-3204-45ef-a37a-755a80582fa3</sincro:ID>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">da4ef5ad320445efa37a755a80582fa3</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/da4ef5ad320445efa37a755a80582fa3.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">0cbab43a0f6ca72f6a7d5a9a51a8bd44986f1cad11d2dac53838622fac469b39</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">36cebfeaa7444534a7809009e0f2e18f</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/36cebfeaa7444534a7809009e0f2e18f.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">5b672ffa811b40c6f004d2cd9bbbab0a96d1e0470722144b274cdb0c4eb81597</sincro:Hash>
-<sincro:File sincro:format="application/pkcs7-mime" sincro:extension=".p7m" sincro:encoding="binary">
<sincro:ID sincro:scheme="local">133be5b8c1264c2b806cb31008dc5b13</sincro:ID>
sincro:Path ../../../../Versamenti/3/4/2023/4/21/149cada76c0141b5ba0bd6b53c47ecd9/1/133be5b8c1264c2b806cb31008dc5b13.txt.p7m</sincro:Path>
<sincro:Hash sincro:hashFunction="SHA-256">5b672ffa811b40c6f004d2cd9bbbab0a96d1e0470722144b274cdb0c4eb81597</sincro:Hash>
-<sincro:Submitter sincro:agentType="legal person">
sincro:AgentID VATIT-01234567890</sincro:AgentID>
sincro:FormalName mauro dev</sincro:FormalName>
<sincro:RelevantDocument sincro:hashFunction="SHA-256" sincro:uriDoc="../../../../ManualiAoo" sincro:docHash="fdeae4c9a0a9fa97d5ec2e2452fee17c3c45b01e20f988dc4c8add2b6774082d">ManualeConservazioneSostitutiva.xml</sincro:RelevantDocument>
-<sincro:Holder sincro:agentType="legal person" sincro:holderRole="soggetto produttore">
sincro:AgentID VATIT-01234567890</sincro:AgentID>
sincro:FormalName AOO MAURO DEV</sincro:FormalName>
<sincro:RelevantDocument sincro:hashFunction="SHA-256" sincro:uriDoc="../../../../ManualiAoo" sincro:docHash="fdeae4c9a0a9fa97d5ec2e2452fee17c3c45b01e20f988dc4c8add2b6774082d">ManualeConservazioneSostitutiva.xml</sincro:RelevantDocument>
-<sincro:AuthorizedSigner sincro:agentType="legal person" sincro:signerRole="PreservationManager">
sincro:AgentID VATIT-01234567890</sincro:AgentID>
sincro:FormalName ABLE TECH SRL</sincro:FormalName>
<sincro:RelevantDocument sincro:hashFunction="SHA-256" sincro:uriDoc="../../../../ManualiAoo" sincro:docHash="fdeae4c9a0a9fa97d5ec2e2452fee17c3c45b01e20f988dc4c8add2b6774082d">ManualeConservazioneSostitutiva.xml</sincro:RelevantDocument>
</sincro:AuthorizedSigner>
<sincro:TimeInfo sincro:attachedTimeStamp="false">2023-04-21T09:51:50.7961478+02:00</sincro:TimeInfo>
sincro:LawsAndRegulations DMEF 17 giugno 2014, Linee Guida sulla formazione, gestione e conservazione dei documenti informatici ai sensi dell'art. 71 del CAD</sincro:LawsAndRegulations>
Per leggere le informazioni da un file XML di tipo "sincro" come quello fornito, sarà possibile usare anche System.Xml.Linq, una libreria molto utile per lavorare con XML in modo semplice e intuitivo. Di seguito ti propongo una struttura di classi in C# per rappresentare i dati dell'XML e un metodo per leggere queste informazioni.
Classi C#
csharp Copy code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Xml.Linq;
namespace XmlReaderExample
{
public class PIndex
{
public string Language { get; set; }
public string SincroVersion { get; set; }
public string Uri { get; set; }
public SelfDescription SelfDescription { get; set; }
public List<PVolume> PVolumes { get; set; } = new List<PVolume>();
public List<FileGroup> FileGroups { get; set; } = new List<FileGroup>();
public Process ProcessInfo { get; set; }
}
public class SelfDescription
{
public string ID { get; set; }
public string CreatingApplicationName { get; set; }
public string CreatingApplicationVersion { get; set; }
public string CreatingApplicationProducer { get; set; }
public MoreInfo MoreInfo { get; set; }
}
public class MoreInfo
{
public List<ExternalMetadata> ExternalMetadata { get; set; }
}
public class ExternalMetadata
{
public string ID { get; set; }
public string Path { get; set; }
public string Hash { get; set; }
}
public class PVolume
{
public string ID { get; set; }
public string Label { get; set; }
public string Description { get; set; }
}
public class FileGroup
{
public string ID { get; set; }
public List<File> Files { get; set; } = new List<File>();
}
public class File
{
public string ID { get; set; }
public string Path { get; set; }
public string Hash { get; set; }
}
public class Process
{
public Submitter Submitter { get; set; }
public Holder Holder { get; set; }
public AuthorizedSigner AuthorizedSigner { get; set; }
public TimeReference TimeReference { get; set; }
public string LawsAndRegulations { get; set; }
}
public class Submitter
{
public string AgentID { get; set; }
public string AgentName { get; set; }
}
public class Holder
{
public string AgentID { get; set; }
public string AgentName { get; set; }
}
public class AuthorizedSigner
{
public string AgentID { get; set; }
public string AgentName { get; set; }
}
public class TimeReference
{
public string TimeInfo { get; set; }
}
}
Metodo per Leggere l'XML
Utilizzo
Per utilizzare il metodo ReadSincroXml, puoi fare così:
csharp Copy code
class Program
{
static void Main(string[] args)
{
string filePath = "path_to_your_file.xml"; // Sostituire con il percorso reale del file XML
PIndex pIndexData = ReadSincroXml(filePath);
// Esempio di accesso ai dati letti
Console.WriteLine($"Language: {pIndexData.Language}");
Console.WriteLine($"Creating Application: {pIndexData.SelfDescription.CreatingApplicationName}");
foreach (var fileGroup in pIndexData.FileGroups)
{
Console.WriteLine($"File Group ID: {fileGroup.ID}");
foreach (var file in fileGroup.Files)
{
Console.WriteLine($"File ID: {file.ID}, Path: {file.Path}, Hash: {file.Hash}");
}
}
}
}
Note
Assicurati di avere una corretta gestione dei namespace XML che stai utilizzando. Nel tuo XML ci sono namespace definito con xmlns:sincro, quindi è necessario specificarli con XName.Get(...) quando si accede agli elementi.
Gestisci eventuali eccezioni o errori di parsing XML come necessario.
Potresti anche voler implementare l'override di ToString() sulle tue classi per un output più ordinato quando stampi gli oggetti.
Show full message · 233 lines Copy first response
Not yet included in a published release.
public static PIndex ReadSincroXml(string filePath)
{
XDocument xdoc = XDocument.Load(filePath);
var pIndexElement = xdoc.Root;
// Creare un'istanza di PIndex
PIndex pIndex = new PIndex
{
Language = pIndexElement.Attribute("sincro:language")?.Value,
SincroVersion = pIndexElement.Attribute("sincro:sincroVersion")?.Value,
Uri = pIndexElement.Attribute("sincro:uri")?.Value,
SelfDescription = new SelfDescription
{
ID = pIndexElement.Element(XName.Get("SelfDescription", "http://www.uni.com/U3011/sincro-v2/")).Element(XName.Get("ID", "http://www.uni.com/U3011/sincro-v2/")).Value,
CreatingApplicationName = pIndexElement.Element(XName.Get("SelfDescription", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("CreatingApplication", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Name", "http://www.uni.com/U3011/sincro-v2/")).Value,
CreatingApplicationVersion = pIndexElement.Element(XName.Get("SelfDescription", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("CreatingApplication", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Version", "http://www.uni.com/U3011/sincro-v2/")).Value,
CreatingApplicationProducer = pIndexElement.Element(XName.Get("SelfDescription", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("CreatingApplication", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Producer", "http://www.uni.com/U3011/sincro-v2/")).Value,
MoreInfo = new MoreInfo
{
ExternalMetadata = pIndexElement.Element(XName.Get("SelfDescription", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("MoreInfo", "http://www.uni.com/U3011/sincro-v2/"))
.Elements(XName.Get("ExternalMetadata", "http://www.uni.com/U3011/sincro-v2/"))
.Select(em => new ExternalMetadata
{
ID = em.Element(XName.Get("ID", "http://www.uni.com/U3011/sincro-v2/")).Value,
Path = em.Element(XName.Get("Path", "http://www.uni.com/U3011/sincro-v2/")).Value,
Hash = em.Element(XName.Get("Hash", "http://www.uni.com/U3011/sincro-v2/")).Value
}).ToList()
}
},
PVolumes = pIndexElement.Elements(XName.Get("PVolume", "http://www.uni.com/U3011/sincro-v2/")).Select(pv => new PVolume
{
ID = pv.Element(XName.Get("ID", "http://www.uni.com/U3011/sincro-v2/")).Value,
Label = pv.Element(XName.Get("Label", "http://www.uni.com/U3011/sincro-v2/")).Value,
Description = pv.Element(XName.Get("Description", "http://www.uni.com/U3011/sincro-v2/")).Value
}).ToList(),
FileGroups = pIndexElement.Elements(XName.Get("FileGroup", "http://www.uni.com/U3011/sincro-v2/")).Select(fg => new FileGroup
{
ID = fg.Element(XName.Get("ID", "http://www.uni.com/U3011/sincro-v2/")).Value,
Files = fg.Elements(XName.Get("File", "http://www.uni.com/U3011/sincro-v2/")).Select(f => new File
{
ID = f.Element(XName.Get("ID", "http://www.uni.com/U3011/sincro-v2/")).Value,
Path = f.Element(XName.Get("Path", "http://www.uni.com/U3011/sincro-v2/")).Value,
Hash = f.Element(XName.Get("Hash", "http://www.uni.com/U3011/sincro-v2/")).Value
}).ToList()
}).ToList(),
ProcessInfo = new Process
{
Submitter = new Submitter
{
AgentID = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Submitter", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentID", "http://www.uni.com/U3011/sincro-v2/")).Value,
AgentName = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Submitter", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentName", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("FormalName", "http://www.uni.com/U3011/sincro-v2/")).Value
},
Holder = new Holder
{
AgentID = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Holder", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentID", "http://www.uni.com/U3011/sincro-v2/")).Value,
AgentName = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("Holder", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentName", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("FormalName", "http://www.uni.com/U3011/sincro-v2/")).Value
},
AuthorizedSigner = new AuthorizedSigner
{
AgentID = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AuthorizedSigner", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentID", "http://www.uni.com/U3011/sincro-v2/")).Value,
AgentName = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AuthorizedSigner", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("AgentName", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("FormalName", "http://www.uni.com/U3011/sincro-v2/")).Value
},
TimeReference = new TimeReference
{
TimeInfo = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("TimeReference", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("TimeInfo", "http://www.uni.com/U3011/sincro-v2/")).Value
},
LawsAndRegulations = pIndexElement.Element(XName.Get("Process", "http://www.uni.com/U3011/sincro-v2/"))
.Element(XName.Get("LawsAndRegulations", "http://www.uni.com/U3011/sincro-v2/")).Value
}
};
return pIndex;
}