Hello,

I'm parsing an XML string and can't figure out how to remove the "<" and ">"
from the string.

Here's a sample string:
 >6800468< 

The value above is returned from a function "MidString" found at CFLib.org.
Here's how I'm trying to get the numbers from between the > < symbols:

<cfset TransIDStart = "TransactionID">
<cfset TransIDEnd = "/TransactionID">
<cfset TransID = #MidString(XMLReturn,TransIDStart,TransIDEnd)#>
<cfset TID = #Mid(TransID,1,Len(TransID)-1)#>

I have also tried this:
<cfset TID = #RemoveChars(TransID,1,2)#>

And it returns a real funky string:

t;6800470< 

Thanks,

James

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to