"jbrave" wrote:
xmlFileCount = xml.GetNamedElements("file-count")
' create an roXMLLIst and assign the element file-count to that list (I don't understand this enough to explain it to anyone myself)
Give me an roXMLList that contains every "file-count" element below whatever element "xml" references
"jbrave" wrote:
If xmlFileCount <> invalid
' check if xmlFileCount is null
Correct.
"jbrave" wrote:
And fileCount.Count() > 0
' check if the array variable filecount contains at least one entry (why?)
Basically, without testing it, I don't know if GetNamedElements will return invalid or an empty roXMLList, so we check both, so the next line that tries to access the first element of the list doesn't blow up if it's the latter (an empty list)
"jbrave" wrote:
'assign the value of the field file-count
fileCount = xmlFileCount[ 0 ].GetText()
Correct.