FYI, Doug, I got the error too and revised as shown below to get it working.
>Hi Michael.
>
>>
>> .ToXML('lcXML', '', lcSchemaLocation, llIsFile, llIncludeBefore, ;
>> llChangesOnly)
>>
>
>Hmm, I'm surprised that worked. According to the help file and IntelliSense, ToXML only accepts 5 parameters.
>
>Doug