<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Feb 2018 09:04:00 Z</lastBuildDate><pubDate>28 Jan 2018 05:29:00 Z</pubDate><description>Hello,&#13;
&#13;
I need to read and process data from a xml file. The content of the xml file (a.xml) is&#13;
&#13;
Contents of a.xml&#13;
=============&#13;
&lt;?xml version="1.0" encoding="UTF-16LE" standalone="no"?&gt;&#13;
&#13;
BaseAccountsYBaseAccounts1NBaseAccounts2Y&#13;
&#13;
&#13;
I tried with the following code, but all fails.&#13;
===================================================&#13;
IF fFileExist("a.xml") THEN&#13;
XMLSource = fLoadText("a.xml", foAnsi)&#13;
XMLRes = XMLDocument("XMLDoc", XMLSource)&#13;
// Was the document created?&#13;
IF XMLRes = False THEN&#13;
Error("The following problem was detected: " + ErrorInfo())&#13;
ELSE&#13;
info("The document was successfully created. It is ready to be used.")&#13;
END&#13;
&#13;
XMLRes = XMLFirst("XMLDoc")&#13;
IF XMLRes = True THEN&#13;
info("First XMLElementName", XMLElementName("XMLDoc"))&#13;
info("First XMLParentName", XMLParentName("XMLDoc"))&#13;
info("First XMLElementName", XMLElementName("XMLDoc"))&#13;
info("First XMLData", XMLData("XMLDoc"))&#13;
info("FIrst XMLChild", XMLChild("XMLDoc"))&#13;
ELSE&#13;
info("first failed", ErrorInfo(errMessage))&#13;
END&#13;
&#13;
XMLRes = XMLRoot("XMLDoc")&#13;
info("XML Res root ", XMLRes)&#13;
IF XMLRes = True THEN&#13;
info("Root XMLElementName", XMLElementName("XMLDoc"))&#13;
info("Root XMLParentName", XMLParentName("XMLDoc"))&#13;
info("Root XMLElementName", XMLElementName("XMLDoc"))&#13;
info("Root XMLData", XMLData("XMLDoc"))&#13;
info("Root XMLChild", XMLChild("XMLDoc"))&#13;
ELSE&#13;
info("root failed", ErrorInfo(errMessage))&#13;
END&#13;
&#13;
XMLRes = XMLFind("XMLDoc", "DBProfile_row")&#13;
info("XML Res find", XMLRes)&#13;
IF XMLRes = True THEN&#13;
info("Root XMLElementName", XMLElementName("XMLDoc"))&#13;
info("Root XMLParentName", XMLParentName("XMLDoc"))&#13;
info("Root XMLElementName", XMLElementName("XMLDoc"))&#13;
info("Root XMLData", XMLData("XMLDoc"))&#13;
info("Root XMLChild", XMLChild("XMLDoc"))&#13;
ELSE&#13;
info("find failed", ErrorInfo(errMessage))&#13;
END&#13;
&#13;
========================================================&#13;
&#13;
I get only failed message. Am I missing anything?&#13;
&#13;
Happiness Always&#13;
BKR Sivaprakash</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing/read.awp</link><title>[WD22] XML file processing</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64377/read.awp</comments><pubDate>3 Feb 2018 09:04:00 Z</pubDate><description>Thanks DerekT.&#13;
&#13;
Issue is with the XML file generated from other application.&#13;
&#13;
By removing encoding in the line, I could read…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64377/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64377/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing/read.awp">[WD22] XML file processing</source><title>Re: [WD22] XML file processing</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64253/read.awp</comments><pubDate>28 Jan 2018 10:33:00 Z</pubDate><description>I use the following to read notifications of payments received.&#13;
The xml I receive is pretty simple, they can be quite complex, …</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64253/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing-64253/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64250-wd22-xml-file-processing/read.awp">[WD22] XML file processing</source><title>Re: [WD22] XML file processing</title></item></channel></rss>
