Hi i must read a xml file, in a part of the code there are some field label with a name as reported in the example
<Fields>
<Field Name="JobId"><![CDATA[7096c681-3165-4137-95a3-4ae873af2132]]></Field>
<Field Name="isDeleted"><![CDATA[0]]></Field>
<Field Name="TopicId"><![CDATA[5870811]]></Field>
<Field Name="Type"><![CDATA[Document]]></Field>
<Field Name="CustomerId"><![CDATA[8063]]></Field>
<Field Name="DocumentType"><![CDATA[volopress_pdf]]></Field>
<Field Name="Inserted"><![CDATA[2021-01-02 08:47:51]]></Field>
<Field Name="pageNumber"><![CDATA[17]]></Field>
<Field Name="Position"><![CDATA[1]]></Field>
<Field Name="TAG_Source"><![CDATA[Cronache di Napoli]]></Field>
<Field Name="link_pdf"><![CDATA[http://www.pippo.com]]></Field>
<Field Name="TAG_Topic"><![CDATA[Terremoti]]></Field>
<Field Name="isValidSnippet"><![CDATA[True]]></Field>
</Fields>
I want to read only the field with the name "link_pdf"
If i use this code
$alink = $rassegna->Fields->Field[23];
I can read the value, but in some case this isn't a good work, how i can access to the value by the name of field?
$alink = $rassegna->Fields->Field['link_export'];
not work