<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>23 Dec 2019 09:33:22 Z</lastBuildDate><pubDate>20 Dec 2019 01:34:44 Z</pubDate><description>Hi I am having trouble with XML. I have imported and xsd file (All good)&#13;
-&lt;MainRoot&gt;&#13;
-&lt;Consignment&gt;&#13;
&lt;ConsignmentNumber&gt;CPA3AY0080235&lt;/ConsignmentNumber&gt;&#13;
&lt;ConsignmentDate&gt;2019-12-17&lt;/ConsignmentDate&gt;&#13;
&lt;SenderName&gt;Coty Australia Pty Ltd - CB&lt;/SenderName&gt;&#13;
&lt;SenderStreetAddress&gt;LEVEL 31&lt;/SenderStreetAddress&gt;&#13;
&lt;SenderStreetAddress1/&gt;&#13;
&lt;SenderSuburb&gt;SYDNEY&lt;/SenderSuburb&gt;&#13;
&lt;SenderState&gt;NSW&lt;/SenderState&gt;&#13;
&lt;SenderPostcode&gt;2000&lt;/SenderPostcode&gt;&#13;
&lt;Pickup&gt;No&lt;/Pickup&gt;&#13;
&lt;Delivery&gt;Yes&lt;/Delivery&gt;&#13;
&lt;DangerousGoods&gt;YES&lt;/DangerousGoods&gt;&#13;
&lt;ReceiverName&gt;Chemist WH Vic Point B157&lt;/ReceiverName&gt;&#13;
&lt;ReceiverStreetAddress&gt;Shopj02 Victoria Point Lakesid&lt;/ReceiverStreetAddress&gt;&#13;
&lt;ReceiverStreetAddress1&gt;11-13 Bunker Road&lt;/ReceiverStreetAddress1&gt;&#13;
&lt;ReceiverSuburb&gt;VIC POINT&lt;/ReceiverSuburb&gt;&#13;
&lt;ReceiverState&gt;QLD&lt;/ReceiverState&gt;&#13;
&lt;ReceiverPostcode&gt;4165&lt;/ReceiverPostcode&gt;&#13;
&lt;TimeSlotDate&gt;2019-12-11&lt;/TimeSlotDate&gt;&#13;
&lt;TimeSlotDate2&gt;2019-12-20&lt;/TimeSlotDate2&gt;&#13;
&lt;Comments&gt;2019-12-11 To 2019-12-20&lt;/Comments&gt;&#13;
&lt;ChargeTo/&gt;&#13;
&lt;CarrierService&gt;BEP&lt;/CarrierService&gt;&#13;
&lt;TotalWeight&gt;57.626&lt;/TotalWeight&gt;&#13;
-&lt;LoadDetails&gt;&#13;
&lt;ItemReference&gt;26498223512&lt;/ItemReference&gt;&#13;
&lt;NumberOfUnits&gt;1&lt;/NumberOfUnits&gt;&#13;
&lt;LogisticUnit&gt;CARTON&lt;/LogisticUnit&gt;&#13;
&lt;Weight&gt;7.992&lt;/Weight&gt;&#13;
&lt;Length&gt;0.275&lt;/Length&gt;&#13;
&lt;Width&gt;0.380&lt;/Width&gt;&#13;
&lt;Height&gt;0.245&lt;/Height&gt;&#13;
&lt;Cubic&gt;0.026&lt;/Cubic&gt;&#13;
&lt;/LoadDetails&gt;&#13;
-&lt;LoadDetails&gt;&#13;
&lt;ItemReference&gt;264982235&lt;/ItemReference&gt;&#13;
&lt;NumberOfUnits&gt;1&lt;/NumberOfUnits&gt;&#13;
&lt;LogisticUnit&gt;CARTON&lt;/LogisticUnit&gt;&#13;
&lt;Weight&gt;2.564&lt;/Weight&gt;&#13;
&lt;Length&gt;0.275&lt;/Length&gt;&#13;
&lt;Width&gt;0.380&lt;/Width&gt;&#13;
&lt;Height&gt;0.245&lt;/Height&gt;&#13;
&lt;Cubic&gt;0.026&lt;/Cubic&gt;&#13;
&lt;/LoadDetails&gt;&#13;
-&lt;LoadDetails&gt;&#13;
&lt;ItemReference&gt;2649822356&lt;/ItemReference&gt; &#13;
&#13;
I use the following code&#13;
FOR EACH LoadDetails   OF xmldocumnentone.MainRoot&#13;
		 &#13;
		detcons.LineNumber = nCurrentlinenumber&#13;
		nCurrentlinenumber ++&#13;
		detcons.id = sTempid&#13;
		detcons.Reference = Consignment.LoadDetails.ItemReference&#13;
		detcons.Items = Consignment.LoadDetails.NumberOfUnits&#13;
		detcons.Description = Consignment.LoadDetails.LogisticUnit&#13;
		detcons.weight = Consignment.LoadDetails.Weight&#13;
		rSLenstring = Consignment.LoadDetails.Length &#13;
		rSWidthstring = Consignment.LoadDetails.Width&#13;
		rSHeightstring = Consignment.LoadDetails.Height&#13;
		detcons.Length =  (rSLenstring * 1000)&#13;
		&#13;
		detcons.Width = (rSWidthstring * 1000)&#13;
		detcons.Height = (rSHeightstring * 1000)&#13;
		detcons.LineCubic = Consignment.LoadDetails.Cubic&#13;
		detcons.LabelsPrinted = 1&#13;
		&#13;
		Cons.CUBIC += detcons.LineCubic&#13;
		HAdd(detcons)&#13;
The problem is it keeps reading the same record over and over &#13;
any help would be grate</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues/read.awp</link><title>XML issues</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>ra.vanderMOlen</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67512/read.awp</comments><pubDate>23 Dec 2019 09:33:22 Z</pubDate><description>hi  it takes the same record again and again .  Walk through it withthe debeugger and you will see that&#13;
&#13;
use :  Consignment.Lo…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67512/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67512/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues/read.awp">XML issues</source><title>Re: XML issues</title></item><item><author>BALTASAR</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67504/read.awp</comments><pubDate>20 Dec 2019 09:56:42 Z</pubDate><description>after the last line "&lt;ItemReference&gt;2649822356&lt;/ItemReference&gt;" you must "close" the XML, so you must have&#13;
&#13;
&lt;ItemReference&gt;264…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67504/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues-67504/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/67503-xml-issues/read.awp">XML issues</source><title>Re: XML issues</title></item></channel></rss>
