34913RSS Parserhttp://www.seansekora.com/index.cfm/2007/2/22/RSS-ParserRSS parser is a fast and adaptable CFC that parses XML. Originally it was designed to read RSS feeds of blogs and was later adapted to be able read various RSS feeds. Currently it is limit to RSS 2.0 format, but I am working on adapting it to handle Atom feeds.
The RSS parser was design to allow programmers to pass in a list of item child nodes that they want to search for in the XML, such as title and description. I also built in the ability to group 2 or more child nodes together in an "OR" represented by |, such as pubdate|datepub. This would search for pubdate first and if this isn't found it would search for datepub and continue if there where additional child nodes until it found one. It would then use the first child node in the list as the structure key and save what ever value is found to it.
Weighted random is a CFC that I created to use for the CFSudoku project. The main function of this CFC is to allow a developer to pass in an structure of values and their "weight".
The weight structure is then used to build a weight array. The length of the array is equal to the sum of weights and the corresponding value is stored in each array element. RandRange() is then used to get a random array key and the corresponding value is returned as the weighted random value.
RSS parser is a fast and adaptable CFC that parses XML. Originally it was designed to read RSS feeds of blogs and was later adapted to be able read various RSS feeds. Currently it is limit to RSS 2.0 format, but I am working on adapting it to handle Atom feeds.
The RSS parser was design to allow programmers to pass in a list of item child nodes that they want to search for in the XML, such as title and description. I also built in the ability to group 2 or more child nodes together in an "OR" represented by |, such as pubdate|datepub. This would search for pubdate first and if this isn't found it would search for datepub and continue if there where additional child nodes until it found one. It would then use the first child node in the list as the structure key and save what ever value is found to it.
I also created a cfc that works with the RSS parser to handle a gallery feed from SmugMug.com. Among other things the smugmug cfc gets information, such as imageID from the image link, and uses this the create links to the various image sizes that are not directly included in the XML.
CFX_XMLParser is a Fast Java CFX tag that takes an XML document and returns a ColdFusion structure containing the XML document. Our tests show this parser to be about 1000% faster than the MSXML Parser invoked through CFOBJECT. CFOBJECT based parsers also tend to buckle under load.
RSS parser is a fast and adaptable CFC that parses XML. Originally it was designed to read RSS feeds of blogs and was later adapted to be able read various RSS feeds. Currently it is limit to RSS 2.0 format, but I am working on adapting it to handle Atom feeds.
The RSS parser was design to allow programmers to pass in a list of item child nodes that they want to search for in the XML, such as title and description. I also built in the ability to group 2 or more child nodes together in an "OR" represented by |, such as pubdate|datepub. This would search for pubdate first and if this isn't found it would search for datepub and continue if there where additional child nodes until it found one. It would then use the first child node in the list as the structure key and save what ever value is found to it.
I also created a cfc that works with the RSS parser to handle a gallery feed from SmugMug.com. Among other things the smugmug cfc gets information, such as imageID from the image link, and uses this the create links to the various image sizes that are not directly included in the XML.
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.