As you can't have folders in SharePoint Team Services document libraries, I
presume that you are using Windows SharePoint Services.
If so please post this question to the Windows SharePoint Services newsgroup
(microsoft.public.sharepoint.windowsservices).
This is the newsgroup for the CAML language as used in SharePoint Team
Services only. (as the name says)