Need help reading an XML file
I'm trying to read an XML document for an item, and it's having inconsistent results.
Example:
XML doc:
<acronym>
<name>binghamton_ny</name>
<old>Binghamton Ny</old>
<new>Binghamton, NY</new>
</acronym>
<acronym>
<name>burlington_vt</name>
<old>Burlington Vt</old>
<new>Burlington, VT</new>
</acronym>
<acronym>
<name>champaign_il</name>
<old>Champaign Il</old>
<new>Champaign, IL</new>
</acronym>
Code:
<cfloop list="#dirList#" index="d" delimiters="|">
<cfloop query="chngCurrent">
<cfif REFind("\b#old#\b",d) NEQ 0>
<cfset newD = REreplace(d,"\b#old#\b",new,"ALL") />
</cfif>
</cfloop>
</cfloop>
The REFind doesn't always find the match, even though there is one. I have no idea why it's being so annoying.
