Hallo Pjoern,
ich würde sagen, dass Du dazu das ID-Script verlassen musst und den XML-String in einem Handler prüfst ...
set thexml to "
Inhalt|Inhalt|Inhalt
"
set trueorfalse to my checkxml(thexml)
on checkxml(thexmlstring)
set tid to AppleScript's text item delimiters
set AppleScript's text item delimiters to {"|", "|"}
set thetest to count every text item of thexmlstring
if thetest = 3 then
return true
else
return false
end if
set AppleScript's text item delimiters to tid
end checkxml