Friday 16-05-2008
About Us | Contact Us | FAQ | Support | Links
Coldfusion Custom Tags, CFXs, CFCs, Full Applications and more!
< Built by ColdFusion Developers, for ColdFusion Developers >
Home | Tag Categories | Latest Tags | Top Rated Tags | Top Selling Tags | My Account | Search | Sell Your Tags | Tags A-Z
CF_XML_Parse

CF_XML_Parse - Parse XML into comma delimited lists
Developer Name: Jeremy Castonguay
Company Name:
Email Developer Email Developer:
Date Created: Thursday 25/09/2003
Latest Version: 1.0
Price: $22
License: One Copy per Server.
Encrypted: Yes
Average Rating:
Times Rated: 2
Rate This Tag:


Tag Comments

There are no comments for this tag yet!
 Related ColdFusion Applications
Developers who purchased CF_XML_Parse also purchased:
  1. CFX_EXEC
  2. CF_FileManager V3.2 (Unencrypted)
  3. CF_WebBoard V2.1 (Cross Browser/Un-Encrypted)
  4. CF_FileManager V3.2 (Cross Browser)
  5. CF_REextract
  6. cf_query2xml
  7. DynamicFiles V2.1
  8. CF_TreeControl
  9. CFBB Forums
  10. CF_CalendarControl


What Is CF_XML_Parse?
This tag allows the developer to pass a string of xml via the "InString" attribute as well as the name of the xml tag that should be parsed into a comma delimited list of values. The tag will then produce a clean comma delimited list of values that can be accessed via the "VarOut" variable name. This tag is very useful for performing tasks such as extracting emails or Customer Names from large strings of XML.

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"

 

 

 



 


< Business Strength Coldfusion Custom Tags >
Sitemap | Privacy | Branding | Web Services | Support | Contact Us
PageCLixUid