<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>12 Jul 2018 21:35:00 Z</lastBuildDate><pubDate>12 Jul 2018 15:39:00 Z</pubDate><description>Hello All,&#13;
&#13;
Trying to read a xml file with 37,000 lines to Import into data files&#13;
the data will go in 5 different files&#13;
OrderHeader&#13;
OrderDetail&#13;
OrderOptions&#13;
PackingListItems&#13;
PackingList&#13;
&#13;
First tried to use hImportxml but this has issues because the way the scheme of the xml file is set up. So I need to loop thru and get each data set separate.&#13;
&#13;
-?xml version="1.0" encoding="ISO-8859-1"?- (OrderAndShipments) Root Node (OrderHeaders) First Order Header (SONumber)00333861-00(/SONumber) (PONumber)N43510WL1(/PONumber) (OrderDate)060118(/OrderDate) (/OrderHeaders) (OrderHeaders) (SONumber)00333871-00(/SONumber) (PONumber)N43506WL1(/PONumber) (OrderDate)060118(/OrderDate) (/OrderHeaders) (OrderDetails) First Order Detail (SONumber)00341237-00(/SONumber) (OrderLineNumber)16.00(/OrderLineNumber) (Quantity)1.000(/Quantity) (ProductCode)B27(/ProductCode) (ProductDesciption)BASE 27 DRW(/ProductDesciption) (CabinetType)CB(/CabinetType) (Tag)ICP-815KIT-RS(/Tag) (OptionLines)3(/OptionLines) (/OrderDetails) (OrderDetails) (SONumber)00341237-00(/SONumber) (OrderLineNumber)17.00(/OrderLineNumber) (Quantity)1.000(/Quantity) (ProductCode)B30(/ProductCode) (ProductDesciption)BASE 30 DRW(/ProductDesciption) (CabinetType)CB(/CabinetType) (Tag)ICP-815KIT-RS(/Tag) (OptionLines)3(/OptionLines) (/OrderDetails) (OrderDetailOptions) (OrderDetailOptions) (SONumber)00341553-00(/SONumber) (OrderLineNumber)2.00(/OrderLineNumber) (OptionText)MITER RIGHT: MITRER(/OptionText) (/OrderDetailOptions) (OrderDetailOptions) (SONumber)00341553-00(/SONumber) (OrderLineNumber)2.00(/OrderLineNumber) (OptionText)MITER RIGHT: MITRER(/OptionText) (/OrderDetailOptions) (PackingListItems) (LoadNumber)4117127(/LoadNumber) (BOLNumber)101091240100(/BOLNumber) (TopLevelPackageID)(/TopLevelPackageID) (PackageID)003384550290000001(/PackageID) (PackageItemCount)1(/PackageItemCount) (PackageType)BOX(/PackageType) (PackageItemType)CABINETS(/PackageItemType) (SONumber)00338455-0(/SONumber) (OrderLineNumber)29.00(/OrderLineNumber) (ShippedQuantity)1(/ShippedQuantity) (LoadedDate)180626202433(/LoadedDate) (/PackingListItems) (PackingListItems) (LoadNumber)4117127(/LoadNumber) (BOLNumber)101091240100(/BOLNumber) (TopLevelPackageID)(/TopLevelPackageID) (PackageID)003384550310000001(/PackageID) (PackageItemCount)1(/PackageItemCount) (PackageType)BOX(/PackageType) (PackageItemType)CABINETS(/PackageItemType) (SONumber)00338455-00(/SONumber) (OrderLineNumber)31.00(/OrderLineNumber) (ShippedQuantity)1(/ShippedQuantity) (LoadedDate)180626223336(/LoadedDate) (/PackingListItems) (PackingListItems) (LoadNumber)4117127(/LoadNumber) (BOLNumber)101091240100(/BOLNumber) (TopLevelPackageID)(/TopLevelPackageID) (PackageID)003384550310000002(/PackageID) (PackageItemCount)1(/PackageItemCount) (PackageType)BOX(/PackageType) (PackageItemType)CABINETS(/PackageItemType) (SONumber)00338455-00(/SONumber) (OrderLineNumber)31.00(/OrderLineNumber) (ShippedQuantity)1(/ShippedQuantity) (LoadedDate)180626221706(/LoadedDate) (/PackingListItems)&#13;
with this code&#13;
IF sFile &lt;&gt; "" THEN XMLDoc is a xmlDocument // Open the XML file XMLDoc = XMLOpen(sFile) nCounter is int=1 MainNode is a xmlNode EntryNode is a xmlNode FOR EACH MainNode OF XMLDoc.OrderAndShipments // Browse the children of the STARTERS node IF XMLDoc.OrderAndShipments.OrderHeaders..Name = "OrderHeaders" FOR EACH EntryNode OF XMLDoc.OrderAndShipments.OrderHeaders Trace(XMLDoc.OrderAndShipments.OrderHeaders..Name + TAB + EntryNode..Name + TAB + EntryNode..Text) END END nCounter+=1 Trace(nCounter) END END&#13;
The issue is it only reads the first set of OrderHeaders. There are 576 Order Headers then 12,000 Order Deatils and then 12,000 PacklistItems</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp</link><title>Read XML File WD23</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/66141-read-xml-file-wd23-66149/read.awp</comments><pubDate>12 Jul 2018 21:35:00 Z</pubDate><description>Hi Dennis&#13;
&#13;
what I was saying:&#13;
&#13;
- import the xml file in the analysis&#13;
- code the REAL import with MyFile.MyField=MyXMLFile=M…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66149/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66149/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66147/read.awp</comments><pubDate>12 Jul 2018 18:59:00 Z</pubDate><description>Hello Fabrice,&#13;
&#13;
Do not not get what you are telling me but I did come to a solution.&#13;
One thing I noticed about the conversion…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66147/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66147/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66145/read.awp</comments><pubDate>12 Jul 2018 17:55:00 Z</pubDate><description>well...&#13;
&#13;
Now that the files are described in your analysis, you can just do a changedir to read the daily files in whatever di…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66145/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66145/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66144/read.awp</comments><pubDate>12 Jul 2018 17:24:00 Z</pubDate><description>Hello Frabice,&#13;
&#13;
Yes I did that and it works like a charm. Now if I can only reproduce that in code because I need to do it eve…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66144/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66144/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66143/read.awp</comments><pubDate>12 Jul 2018 15:54:00 Z</pubDate><description>Dd you try with the code provided in this help page:&#13;
https://doc.windev.com/en-US/?3081042&amp;name=Example_for_using_the_XML_types</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66143/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66143/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66142/read.awp</comments><pubDate>12 Jul 2018 15:53:00 Z</pubDate><description>Hi Dennis,&#13;
&#13;
you can try to add the files directly into the analysis (xml IS a supported format)...&#13;
&#13;
You should end up with y…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66142/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23-66142/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/66141-read-xml-file-wd23/read.awp">Read XML File WD23</source><title>Re: Read XML File WD23</title></item></channel></rss>
