So where i have
Dim doc = Xdocument.Load("C:\users\matt taylor\desktop\backup\backup.xml")
i would say
For Each j In doc...<job>
Dim dest = j...<Destination>.FirstOrDefault().Value
If dest IsNot Nothing Then
For Each Source In j...<Source>
zip.AddFile(Source.value, "Archive_" & DateString)
Next
End If
However, this leaves a few errors.
1. 'source in j...<source>' part says "value of type system.xml.linq.xelement cannot be converted to xml.nodelist"
2. '.addfile(source.value,' part says 'value' is not a member of xml.nodelist

New Topic/Question
Reply




MultiQuote



|