>Hello Cetin
>
>Thank you for your quick answer.
>The first error is gone, but i get a new one.
>Unable to infer XML schema. (Error 2120)
>What do i miss?
>
>For you understanding:
>My users we get emails from our customer with one or more xml files as attachment.
>They store these file in a "inbox directory".
>I have to read all files in the "inbox directory" and have to put some records in our database.
>
>Best regards
>Albert
Albert,
VFP is kindly saying "I don't know how to parse this XML". XMLToCursor is not able to parse all kinds of XML (while the XML might be perfectly valid). I'm afraid you have to write your own parsers (XMLAdapter might help but rarely it's the case).
Cetin