Home  Extensions / Components  Software  Contact  Linecraft Blog  Services  Portfolio Product Updates/ Customer Log-in

Recordset to XML
Dreamweaver Server Behavior

MailerDreamweaver Extension This product is fully compatible with Adobe Dreamweaver CS3!

This Server Behavior generates XML file from a Recordset or Dreamweaver ASP.NET Dataset.
The web page with dynamically generated XML can be either referenced as XML data source for your Spry Data Set or saved as a file (clicking a button will prompt user to save generated XML file), which can be used as a Design Time feed for your Spry Data Set.



Compatible with PHP (MySQL), ASP.NET (VB and C#), ColdFusion and ASP (VBScript) Server Models.


Please note: this is a stand-alone Server Behavior which is also available as a part of Spry Data Utilities Toolkit

Structure of the produced XML

The XML produced by the Server Behavior will have the following structure:

<recordset total="1000">
    <record>
        <field1>
some value</field1>
        <field2>
some value</field2>
    </record>
    <record>
        <field1>
some value</field1>
        <field2>
some value</field2>
    </record>
</recordset>


<recordset> is the root node of the generated XML (attribute "total" indicates the total number of records in the Recordset).
It contains <record> nodes which represent the records.
Each <record> node contains record's field nodes.
The name of each field node will be the same as the name of the corresponding Recordset field while the node text will be the value of that field.
For example, if your Recordset has a field USER_ID and one of the values is "10" that value will be represented in the XML by a field node structured as follows:

<USER_ID>10</USER_ID>

If the recordset is empty (contains no records) output will contain only root element - <recordset>:
<recordset total="0">
</recordset>

Dreamweaver version Compatibility MailerDreamweaver Extension

  • Dreamweaver 8
  • Dreamweaver CS3

Demo

The table below contains output of a database Recordset. Click here to generate a dynamic XML file out of this Recordset.

Employees table:
EMPLOYEE_ID First Name Last Name Hourly Rate Address Department
1 Allan Doe $70/hr #10 44 St, WorkCity CA 44
4 Frank Doe $40/hr #22 5th Ave, WorkCity CA 22
2 Jane Doe $30/hr #12 5th Ave. WorkCity CA 44
6 John Doe $55/hr #22 5th Ave, WorkCity CA 22
7 Kevin Doe $40/hr #2 44th St, WorkCity CA 22
3 Robert Doe $55/hr #2 34th St, WorkCity CA 44
5 Tanya Doe $40/hr #21 7th Ave, WorkCity CA 22

Questions? Suggestion? Contact us here

 Visa Mastercard Discover American Express eCheck

Transactions are processed through PayPal.
YOU DON'T need to have PayPal account in order to buy.
After payment you will automatically be redirected to the download section.
USD$ 24.99

Copyright © 2008 Alex July
Linecraft Studio