Skip to main content
A Open Source Solution
Home Download Support Configuration Development ImagoX

Sample Form XML

Below is a simple XML example of an Form.


<?xml version="1.0"?>
<!DOCTYPE document SYSTEM "imago.dtd">
<document xmlns:xform="http://xenei.org/imago/XForm/2003">
<meta>
    <title>ImagoX Form Example</title>
    <author>
        <name>webmaster</name>
        <email>webmaster@xenei.org</email>
    </author>
</meta>
<content>
    <xform:root name="formRoot"><xform:form>
        <test name="Name"><xform:input xform:name="name" xform:type="text"/></test>
        <test name="Password"><xform:input xform:name="pw" xform:type="password"/></test>
        <test name="Number"><xform:input xform:name="number" xform:type="number"/></test>
        <test name="Email"><xform:input xform:name="email" xform:type="email"/></test>
        <test name="Date"><xform:input xform:name="date" xform:type="date"/></test>
    </xform:form></xform:root>
</content>
</document>

				

Once the above XML has been validated the result would be the following document:


<!DOCTYPE document SYSTEM "imago.dtd">
<document xmlns:xform="http://xenei.org/imago/XForm/2003">
<meta>
    <title>ImagoX Form Example</title>
    <author>
        <name>webmaster</name>
        <email>webmaster@xenei.org</email>
    </author>
</meta>
<content>
    <formRoot>
        <test name="Name"><name>My Name</name></test>
        <test name="Password"><pw>MyPassword</pw></test>
        <test name="Number"><number>123</number></test>
        <test name="Email"><email>someone@xenei.org</email></test>
        <test name="Date">
			<date xform:monthNum="6" xform:day="10" xform:year="1959" 
			xform:calendar="java.util.GregorianCalendar" xform:month="July" 
			xform:value="11292897198"/>
		</test>
    </formRoot>
</content>
</document>

				
All trademarks and copyrights are the property of their respective owners.
Copyright © 2002-2004 by Xenei.com, All Rights Reserved
OpenSource.org
AnyBrowser.org
Xenei.org - Open Source Solutions