473,320 Members | 1,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Generate HTML form with XML

Hi,
I have an xml document, example below. I would like to create an HTML
form dynamically so all I would do is change the XML form in case a
different version comes.
I am relatively new to ASP.NET and any help would be greatly
appreciated.
Thanks,
Shahid
-----SAMPLE XML FILE------
<?xml version="1.0"?>
<notice>
<pre>
<topic>QPI</topic>
<version>1.0</version>
</pre>
<introduction>
<body>
<title>Introduction</title>
<p>The following conveys information for
choosing good passwords,
which will keep our systems and data secure.</p>
</body>
</introduction>
<question>
<number>1</number>
<name>Introduction</name>
<subQuestion>
<name>prepared for the call</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>spoke to appropriate person</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>proper representation</name>
<value>5</value>
</subQuestion>
</question>
<question>
<number>2</number>
<name>Rapport</name>
<subQuestion>
<name>was attempted</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>was appropriate</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>carried throughout the call</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>mirrored the customer</name>
<value>5</value>
</subQuestion>
</question>
</notice>
------------------------------*------------

Nov 19 '05 #1
2 1234
If you don't want to use ASP.NET server control/PostToBack you can use
System.Xml.Xslt

Probably what you really want to do though is write a method that
deserializes that data and populates your ASP.NET Form as desired.

Hope that helps,

Jason Lind

"Shahid" wrote:
Hi,
I have an xml document, example below. I would like to create an HTML
form dynamically so all I would do is change the XML form in case a
different version comes.
I am relatively new to ASP.NET and any help would be greatly
appreciated.
Thanks,
Shahid
-----SAMPLE XML FILE------
<?xml version="1.0"?>
<notice>
<pre>
<topic>QPI</topic>
<version>1.0</version>
</pre>
<introduction>
<body>
<title>Introduction</title>
<p>The following conveys information for
choosing good passwords,
which will keep our systems and data secure.</p>
</body>
</introduction>
<question>
<number>1</number>
<name>Introduction</name>
<subQuestion>
<name>prepared for the call</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>spoke to appropriate person</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>proper representation</name>
<value>5</value>
</subQuestion>
</question>
<question>
<number>2</number>
<name>Rapport</name>
<subQuestion>
<name>was attempted</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>was appropriate</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>carried throughout the call</name>
<value>5</value>
</subQuestion>
<subQuestion>
<name>mirrored the customer</name>
<value>5</value>
</subQuestion>
</question>
</notice>
------------------------------Â*------------

Nov 19 '05 #2
Thanks for the reply. Do you know of any examples similar to this or
tutorials?

Thanks again
Shahid

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Ed Lai | last post by:
A few weeks ago I have the idea of converting XML instance data to a HTML form, using tags as the label and the resulting form can be used to edit the XML data. So I started to play around with it,...
0
by: Adam Retter | last post by:
Hi Guys, I have a need to create a html form based on my schema. I initially decided to do this using xql, have got some way but am finding this difficult (it may be as I am very new to xql)....
1
by: teknowbabble | last post by:
I would like to know how to convert HTML code that users input into a TEXTAREA box on a HTML FORM into a separate WEBPAGE. I have something like the diagram below on my webpage. The user is...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
1
by: firenet | last post by:
21 function js_reply_msg(node,g_id,u_id,par_id) 22 { 23 node.innerHTML="<FORM><TEXTAREA name=\"msg_con\"><\/TEXTAREA><br><INPUT type=\"submit\" value=\"reply\"><\/FORM>" 24 ...
0
by: bp_jobemail | last post by:
I'm trying to use PHP to wrap the output of an HTML form before it goes into a precompiled C cgi script. Essentially, the company that I work for uses a purchased precompiled c program for their...
2
by: Darkengel | last post by:
I have an HTML form that auto generate an email to specific users w/the information provided in that form. I need to compile all that info into a single excel doc. Is there a way to have it...
7
by: petr.jakes.tpc | last post by:
Hi group, I would like to convert the output of the SQL query, or more generally I would like to convert any "table" data to the html table. I would like to set some rules to format cells,...
2
by: subhabrata.iisc | last post by:
Dear Members of the group, I have a small question, if you can help me to find the answer. I have one function: def add_string(n): print “Print Two strings” print “Print the First String”...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.