Login   Register  
PHP Classes
elePHPant
Icontem

File: test.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mark Kintigh  >  XML Forms  >  test.xml  >  Download  
File: test.xml
Role: Example script
Content type: text/plain
Description: Test XML file
Class: XML Forms
Generate HTML forms from XML file definitions
Author: By
Last change:
Date: 2010-04-01 10:31
Size: 1,372 bytes
 

Contents

Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
<forms>
    <form>
        <name>test</name>
        <field>
            <name>Field1</name>
            <text>First field</text>
            <value>Default value 1</value>
            <size />
        </field>
        <field>
            <name>Field2</name>
            <text>Another field</text>
            <value>Its value</value>
            <size>50</size>
        </field>
        <field>
            <name>check1a</name>
            <type>Checkbox</type>
            <text>A check box a</text>
            <value>1</value>
            <checked>1</checked>
        </field>
    </form>
    <form>
        <name>form two</name>
        <field>
            <name>TwoField1</name>
            <text>Two field</text>
            <value>Two Default value 1</value>
        </field>
        <field>
            <name>TwoField2</name>
            <text>Two Another field</text>
            <value>Two Its value</value>
            <size>20</size>
        </field>
        <field>
            <name>ta1</name>
            <id>ta1</id>
            <type>textarea</type>
            <rows>15</rows>
            <cols>60</cols>
            <value>This is a text area</value>
            <text>Notes&lt;br&gt;</text>
        </field>
        <field>
            <name>radio1</name>
            <type>radio</type>
            <text>Box 1</text>
            <value>1</value>
            <checked>1</checked>
        </field>
        <field>
            <name>radio1</name>
            <text>Box 2</text>
            <type>radio</type>
            <value>2</value>
        </field>
        <field>
            <name>check1</name>
            <type>Checkbox</type>
            <text>A check box</text>
            <value>1</value>
        </field>
    </form>
</forms>