>Hi Folks,
>
>Using VFP 7 build 9147 and I cant seem to get CursorToXML() to work.
>
>
>IF llRetVal
> LOCAL lnChkSize, lcFileName
> lcFileName = [User] + This.cUserID + [Tasks.xml]
> lnChkSize = CURSORTOXML( 'MyTempCursorAlias', lcFileName, 3 )
>ENDIF
>
>
>During program execution, my CursorToXML() call returns the error
"Whitespace invalid in this location". If I run the same code from the Command Window I get the error
"Function argument value, type, or count is invalid"Rox-
>"Whitespace invalid in this location"
Hm. That's the kind of error I've gotten when I have badly formed XML. There's no help entry for that error, either, which doubly makes me think it's an XML problem.
Warning! WAG dead a head.
I admit I'm not sure how CursorToXML handles special characters...is there any chance some of your data has <,>,&,... (I forget the other two) in it that might be causing the problem? (I truly hope that CursorToXML doesn't have a problem with this.)