Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

XML Design

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Has any one designed a xml for a registration form ?
Any ideas on designing of form, with all input fields (checkbox, textarea,dropdown..)of html.
My idea is below... Any better/known ways to do it?
I want to know the pros and cons of this...
Thanks
<form>
<registration>
<field id="1" name="what's your fistname?" value="" contenttypeIDREF="1" required="y/n" order="1" hasref="y/n"/>
<field id="2" name="Do you like chocolate?" value="" contenttypeIDREF="2" choiceIDREF="300"/>
</registration>
<choice choiceID="300">
<choiceitem dbid="301">Yes</choiceitem>
<choiceitem dbid="301">No</choiceitem>
</choice>
<form>
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by pranav pranav:
Hi All,
Has any one designed a xml for a registration form ?
Any ideas on designing of form, with all input fields (checkbox, textarea,dropdown..)of html.
My idea is below... Any better/known ways to do it?
I want to know the pros and cons of this...
Thanks
<form>
<registration>
<field id="1" name="what's your fistname?" value="" contenttypeIDREF="1" required="y/n" order="1" hasref="y/n"/>
<field id="2" name="Do you like chocolate?" value="" contenttypeIDREF="2" choiceIDREF="300"/>
</registration>
<choice choiceID="300">
<choiceitem dbid="301">Yes</choiceitem>
<choiceitem dbid="301">No</choiceitem>
</choice>
<form>



At a glance, your XML looks fine, but you're probably better off asking this question somewhere else, perhaps the XML and Related Technologies forum
 
pranav pranav
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
 
Morning came much too soon and it brought along a friend named Margarita Hangover, and a tiny ad.
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic