Richard,<br><br>Is this the only space in the XML file? That xlate command will remove all spaces in the XML and that may be breaking something else.<br><br>Regards<br><br>Ken<br><br><div class="gmail_quote">On Wed, Feb 20, 2013 at 9:56 AM, GCC Consulting <span dir="ltr"><<a href="mailto:rkreiss@gccconsulting.net" target="_blank">rkreiss@gccconsulting.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My program reads in an xml file and parses it. The parsing program worked<br>
fine until it hit an element with no value except a blank space. Since I<br>
have a counter, when the counter hits this tag, I force my pointer to move<br>
to the next tag. Not the best way to program.<br>
<br>
I considered using xlate to remove the blank space:<br>
<br>
QQ=xlate(ab," ","");ab=qq<br>
<br>
I used a msgbox to show the value of ab and the space had been removed.<br>
However, the parsing now completely fails. Anyone have any idea why once<br>
xlate has been executed, my program fails but without it, everything works<br>
as programmed.<br>
<br>
Here is the xml string imported"<br>
<br>
The problem is at the <CVV2RespCode > </CVV2RestCode> note the space. All<br>
other null tags are ></ - no space<br>
<br>
<?xml version="1.0"<br>
encoding="UTF-8"?><Response><NewOrderResp><IndustryType></IndustryType><Mess<br>
ageType>AC</MessageType><MerchantID>700000005283</MerchantID><TerminalID>001<br>
</TerminalID><CardBrand>VI</CardBrand><AccountNum>4788250000028291</AccountN<br>
um><OrderID>3</OrderID><TxRefNum>50F9A73E14023D0549E816380965D4C50FB95327</T<br>
xRefNum><TxRefIdx>1</TxRefIdx><ProcStatus>0</ProcStatus><ApprovalStatus>1</A<br>
pprovalStatus><RespCode>00</RespCode><AVSRespCode>N8</AVSRespCode><CVV2RespC<br>
ode><br>
</CVV2RespCode><AuthCode>095605</AuthCode><RecurringAdviceCd></RecurringAdvi<br>
ceCd><CAVVRespCode></CAVVRespCode><StatusMsg>Approved</StatusMsg><RespMsg></<br>
RespMsg><HostRespCode>00</HostRespCode><HostAVSRespCode>M</HostAVSRespCode><<br>
HostCVV2RespCode></HostCVV2RespCode><CustomerRefNum></CustomerRefNum><Custom<br>
erName></CustomerName><ProfileProcStatus></ProfileProcStatus><CustomerProfil<br>
eMessage></CustomerProfileMessage><RespTime>144918</RespTime><PartialAuthOcc<br>
urred></PartialAuthOccurred><RequestedAmount></RequestedAmount><RedeemedAmou<br>
nt></RedeemedAmount><RemainingBalance></RemainingBalance><CountryFraudFilter<br>
Status></CountryFraudFilterStatus><IsoCountryCode></IsoCountryCode></NewOrde<br>
rResp></Response><br>
<br>
<br>
<br>
Richard Kreiss<br>
GCC Consulting<br>
<br>
Office: 410-653-2813<br>
<br>
<br>
<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
</blockquote></div><br>