xform data isn't saving xml

Get new comments by email
You can cancel email alerts at anytime.
Comments (1)

Asit sinha in Gurgaon, India

59 months ago

Hi

I am working on xforms. I am new developer on this platform. I have two questions.

1) I am creating a simple application. In application I want a one text box and save button.
One I put the text on textbox and click save button then data should be save in xml.
Can any one give me solution my query.

2) I have example but its also not working. I don’t know why xml isn’t saving data.

<?xml version="1.0" encoding="ASCII"?>
<html xmlns="www.w3.org/1999/xhtml"
xmlns:ev="www.w3.org/2001/xml-events"
xmlns:xforms="www.w3.org/2002/xforms">
<head>
<title>XForms Submit Example</title>
<xforms:model>
<xforms:instance xmlns="">
<MyData>
<Data1>One</Data1>
<Data2>Two</Data2>
<Data3>Three</Data3>
</MyData>
</xforms:instance>

<xforms:submission id="save-instance-to-client"
method="put"
action="file://C:/tmp/xforms/my-data.xml"
replace="instance"
instance="my-instance"
/>

</xforms:model>
</head>
<body>
<xforms:submit submission="save-instance-to-clien">
<xforms:label>Save</xforms:label>
</xforms:submit>

</body>
</html>

Kindly immediate reply me.
Asit Sinha

- Was this comment helpful? Yes / No Reply - Report abuse

» Sign in or create an account to comment on this topic.