Archives

Archives / 2008 / May
  • Using a .NET Web Handler to Generate Dynamic XML Feed for Flash

    Mark Rasmussen has a really useful XML document fluent interface posted that I have been using for generating XML data feeds for my Flash/Flex projects. While there are certainly alternative methods to acheive the same result, such as LINQ to XMLXMLSerializer or XMLWriter, I have found that Mark's fluent interface is easy to use and has been great for my purposes. What I typically have been doing is creating a web handler, checking the query string for the type of feed required and then sending the appropriate queries to the database to return the desired information that I want to format as XML. The following example certainly has room for improvement - the query string should probably undergo some type of validation and probably a few other things that I haven't even considered yet :-)