473,795 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Generating forms from XML Schema

I've been doing some fairly extensive searching on this topic and have
not yet found a solution that doesn't involve recoding the schema in
some framework-specific xml and jumping through various other hoops.
Is there not some
web-2.0-framework-publishing-(non)-bells-and-whistles-technology that
will take a valid XML Schema and create either an XForm or standard
HTML form, publish it, and then validate the subsquent data submission
against the Schema. In a perfect world this would be also make it easy
to store the data in an native or XML-enabled database.

I've looked at Cocoon for example but this requires redoing the Schemas
in proprietary xml which I inherently dislike. Furthermore this would
make it difficult to achieve a wider ambition of having a system where
third party schemas could be processed on the fly for optional
'subforms' of the main form (though these schemas would all be built
from standard building blocks, just with different permutations and
combinations)

Cheers

Dec 6 '06 #1
2 4266
Good thought, but it tends not to survive contact with the real world.

There were many attempts at this early in the evolution of XML Schemas.
None of them were really particularly usable/useful; schemas don't
generally contain enough metadata about the meaning of the information
to let you generate a really user-friendly set of forms, and so the idea
didn't really catch on. You wind up with a much better user experience
if you take the time to hand-implement the interaction.

Also, forms entry doesn't deal very well with optional sections and
recursion -- you'd need to spawn sub-forms based on interaction with the
user, which doesn't fit neatly into the concept of a single HTML form.
(I'm not sure whether XForm does any better in that regard.)

There are certainly schema-directed XML editors, but they tend to be
aimed at folks who are already near-experts in the specific schema
they're working with and hence don't need a lot of user prompting -- or
rely on schemas having been annotated with additional information to
guide the user interface generation. And they rely on presenting a
richer set of interaction techniques than a simple form can provide.

--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Dec 6 '06 #2

Have you looked at

http://alphaworks.ibm.com/tech/xfg

The default submit generated is to an echo server.
However being IBM, I would recommend storing it in DB2 9 with native
XML :)

thanks,
Vijay

ma********@hotm ail.com wrote:
I've been doing some fairly extensive searching on this topic and have
not yet found a solution that doesn't involve recoding the schema in
some framework-specific xml and jumping through various other hoops.
Is there not some
web-2.0-framework-publishing-(non)-bells-and-whistles-technology that
will take a valid XML Schema and create either an XForm or standard
HTML form, publish it, and then validate the subsquent data submission
against the Schema. In a perfect world this would be also make it easy
to store the data in an native or XML-enabled database.

I've looked at Cocoon for example but this requires redoing the Schemas
in proprietary xml which I inherently dislike. Furthermore this would
make it difficult to achieve a wider ambition of having a system where
third party schemas could be processed on the fly for optional
'subforms' of the main form (though these schemas would all be built
from standard building blocks, just with different permutations and
combinations)

Cheers
Dec 12 '06 #3

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

Similar topics

17
2140
by: flupke | last post by:
Hi, i create my GUIs mainly via wxGlade. However when you start of to program and want to do some rearranging to the gui, wxglade overwrites your file and you've got to put your own code back in. I think i can work around that (at least a bit) by making a second file that imports the gui generated by wxglade and make classes that extend the original ones. For instance i could have a class MainForm that extends the wxFrame
5
1894
by: Jon Sequeira | last post by:
Does anyone know of a component or class that available for generating updategrams from custom business objects? Ideally I need something that parses a mapping schema, interrogates an object, and produces an updategram. Any suggestions are welcome. Thanks. Jon
12
2514
by: Martin_Hurst | last post by:
Has some one come up with a similar type script that could be used in a Postgresql database? The script below was created for a SQLServer database. Thx, -Martin ++++++++++++++++++++++++++++++++++++++ http://searchdatabase.techtarget.com/tip/1,289483,sid13_gci913717,00.html In the early stages of application design DBA or a developer creates a data
10
1968
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
1
2421
by: eSapient | last post by:
I get the following error when I run the XML Schema Definition Tool on a XML schema: Error: Error generating classes for schema 'codeGeoFeatureType'. - Specified cast is not valid. The XSD in question is: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
1
4693
by: Noor | last post by:
Hi all I need to generate xml schmea for a stored procedures to use with crystal reports tell me any quick and easy method. thanks
1
2863
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive types and of more elaborate classes implementing IXmlSerializable. The resulting WSDL file for the webservice has two separate schemas in its <types> sections, and the client proxy (generated with wsdl.exe) is missing the definitions of the...
2
4131
by: olympus_mons | last post by:
Hi, I'm just discovering the power of xsd.exe, so maybe I'm doing something wrong. schema files describing requests and responses. So there is an extra xsd file for each response and each request as well as some base schemas, i.e. defining a data type for a result element. Among others this result element contains a simple enumeration type "ResultState" which can either be "OK" or "FAILED".
3
1915
by: Jonathan Fine | last post by:
Hello I want to generate test data from an XML schema. I've had a quick look at existing tools (such as minixsv and amara) but from what I've seen they don't seem to help. It is of course easy to extract all the element names from a schema, but I want more than that. Motivation: I wish to create a subset of TeX/LaTeX that can be easily
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10448
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10217
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9046
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7544
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6784
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.