CF_XMLWriter
CF_XMLWriter was created to allow coldfusion code writers to quickly create an XML page of a table within their database. This is a great tool if you are looking into creating your own news feed or just want to be able to get your data into an XML format. - Define the datasource name
- Define the table to be XMLized
- Click submit
- the code will then create
- a coldfusion page that can be called and will display the xml for the file selected. ALL RECORDS ARE RETURNED.
- this page can be modified by you to limit the records to be returned by changing the query string of the cfquery.
- audits would need to be included to make sure that the query string variables required are defined
- a coldfusion page that will parse the coldfusion page and display the data.
- this page will need to be modified to make the display custom to your requirements
- It is suggested that this code is placed into a directory named xmlwriter
- When the code is created it uses the base:
- http://127.0.0.1/xmlwriter/ within the createcode.cfm page.
- this will need to be changed to properly reflect your site layout.
Below are the examples of the two files created by this process: Click here for a view of the calendar2.cfm xml creator. This is using the content from the CF_Calendar. Click here to see the calendar parser. Note that this is how it looks once it is created. From there you can change the presentation to your preference.
|