Example Usage:
<cfset EntryXML = ' <?xml version="1.0"?> <users> <salesman> <systemname>user</systemname> <fullname>Mike Smith</fullname> <email>MSmith@noDomain.com</email> </salesman> <salesman> <systemname>user</systemname> <fullname>mark Hendrix Smith</fullname> <email>MHendrix@noDomain.com</email> </salesman> <salesman> <systemname>user</systemname> <fullname>Tammy Cochran</fullname> <email>MCochran@noDomain.com</email> </salesman> <salesman> <systemname>user</systemname> <fullname>Mike Smith</fullname> <email>MSmith@noDomain.com</email> </salesman> </users> '>
<cf_xml_parse InString="#EntryXML#" TagValue="email">
<cfoutput>#VarOut#</cfoutput>
Varout now contains the following emails
MSmith@noDomain.com,MHendrix@noDomain.com,MCochran@noDomain.com,MSmith@noDomain.com
To install this tags simply copy the xml_parse.cfm template into your servers custom tag directory or into the directory that contains your calling template. Then use the following Syntax to initiate:
<cf_xml_parse InString="The String to be Parsed" TagValue="the tag to evaluate into a list">
*TagValue should not contain the following characters <> IE: to parse the tag <email> simply set TagValue="email"
|