>It is very small. I will zip it and email it to you right now.
>
>Thank you for your help.
Hi Dmitry,
There're 3 extra bytes (0xEFBBBF) at the beginning of the XML string. They're called a byte order mark (BOM), part of the unicode standard. See
http://www.unicode.org/unicode/faq/utf_bom.html#BOM for details. The bytes 0xEFBBBF denote the BOM in UTF-8. I don't know why XmlAdapter recognizes BOM in the file but not in the string. The workaround is easy.
oXml = CREATEOBJECT("XMLAdapter")
IF lcXml = 0hEFBBBF
oXml.LoadXML( SUBSTR(lcXml,4))
ELSE
oXml.LoadXML( lcXml)
ENDIF
--sb--