Yes, you need flag 512 otherwise the first parameter is treated as a variable with XML stored in it.
XMLToCursor(lcXMLFile,"cPagos", 512)
Keep in mind that XMLToCursor() is designed to process simple XML which is created by CURSORTOXML() or close to it.
>I have a XML file, it was produced by MS-Excel, if I try to convert with XMLToCursor function I get the error 1435, what do I need?
>
>lcXMLFile = GETFILE("xml")
>IF NOT EMPTY(lcXMLFile)
> XMLToCursor(lcXMLFile,"cPagos")
>ENDIF
>
>
>Do I need an especial flag?
--sb--