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, and have
some prelimary proof of concept stuff working. Then I started to
search around on the web for similar works. There seem to be quite a
few people with the same idea. The following is an example. However as
far as I can tell, nobody really takes it to the fullest conclusion.
And the more I work on the project, I can see more and more
interesting potential. I would like to get some comment before I go
too far with my project.
My work is on this site, bear in mind that a lot of features are
missing. For example I am working on insert and delete now.
And for a completely bare bone approach, look at this
XML file from IE6 (would not work with mozilla.)
Ed Lai
whoisit1232003@ yahoo.com (Frank Einstein) wrote in message news:<5cebb493. 0310210821.7252 eb8e@posting.go ogle.com>...[color=blue]
> Looking for a tool that can edit an XML file in a browser. The basic
> requirement is that the XML file is rendered as an HTML form with
> editable fields (including add/delete, preferably in accordance with
> with the document's XSD/DTD or other schema definition). I don't mind
> the actual form of this tool - could be implemented as a JSP/Servlet,
> ASP component, or browser plug-in for local or remote XML file access.
> Alternatively, it doesn't have to be a web browser or HTML as the GUI,
> but it does need to be form-based (as opposed to element-tree based
> like most simple XML editors).
>
> My initial feeling that something like this would be ubiquitous and
> freely available seems to have hit up against a different reality
> after a day of looking. Perhaps tool writers are waiting for
> standards to progress in this area (XForm ?). Perhaps I'm looking in
> the wrong places ?
>
> As an example of what I'm looking for, the closest thing I've found is
> described in this series of articles :
> http://www.xmlfiles.com/articles/mic...ml/default.asp (this
> example uses the Microsoft.XMLDO M asp component)
>
> What's missing here is that the generated HTML form simply reflects
> the current XML document instance, and does not allow for
> modifications allowable by the XSD/DTD unless they are currently in
> the XML document instance. For example, it doesn't give a button to
> add an additional element, if this is allowed by the maxOccurrence in
> the XSD.
>
> So what I want does this:
> - open user-specified XML doc
> - (optionally) open XSLT doc for custom GUI/form rendering
> - open XSD or DTD doc
> - render GUI form containing XML data in accordance with optional XSTL
> doc
> - allow use of HTML/_javascript(or other) controls to change/add/delete
> elements/paramenters/data etc., within the confines of the XSD/DTD
> - transform form data back to XML format, valid per XSD/DTD, and save
> to disk
>
> I've also briefly looked at the Cocoon XMLForms stuff (and related),
> but this seems too comprehensive for what I want... I don't want XML
> binding to Java objects/beans, I simply want something that will
> input/output back to/from the original XML file. Maybe there is a
> tool/sample/example within the Cocoon distribution that does this, but
> I haven't actually looked yet.
>
> Any pointers welcome.
>
> ...[/color]
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, and have
some prelimary proof of concept stuff working. Then I started to
search around on the web for similar works. There seem to be quite a
few people with the same idea. The following is an example. However as
far as I can tell, nobody really takes it to the fullest conclusion.
And the more I work on the project, I can see more and more
interesting potential. I would like to get some comment before I go
too far with my project.
My work is on this site, bear in mind that a lot of features are
missing. For example I am working on insert and delete now.
And for a completely bare bone approach, look at this
XML file from IE6 (would not work with mozilla.)
Ed Lai
whoisit1232003@ yahoo.com (Frank Einstein) wrote in message news:<5cebb493. 0310210821.7252 eb8e@posting.go ogle.com>...[color=blue]
> Looking for a tool that can edit an XML file in a browser. The basic
> requirement is that the XML file is rendered as an HTML form with
> editable fields (including add/delete, preferably in accordance with
> with the document's XSD/DTD or other schema definition). I don't mind
> the actual form of this tool - could be implemented as a JSP/Servlet,
> ASP component, or browser plug-in for local or remote XML file access.
> Alternatively, it doesn't have to be a web browser or HTML as the GUI,
> but it does need to be form-based (as opposed to element-tree based
> like most simple XML editors).
>
> My initial feeling that something like this would be ubiquitous and
> freely available seems to have hit up against a different reality
> after a day of looking. Perhaps tool writers are waiting for
> standards to progress in this area (XForm ?). Perhaps I'm looking in
> the wrong places ?
>
> As an example of what I'm looking for, the closest thing I've found is
> described in this series of articles :
> http://www.xmlfiles.com/articles/mic...ml/default.asp (this
> example uses the Microsoft.XMLDO M asp component)
>
> What's missing here is that the generated HTML form simply reflects
> the current XML document instance, and does not allow for
> modifications allowable by the XSD/DTD unless they are currently in
> the XML document instance. For example, it doesn't give a button to
> add an additional element, if this is allowed by the maxOccurrence in
> the XSD.
>
> So what I want does this:
> - open user-specified XML doc
> - (optionally) open XSLT doc for custom GUI/form rendering
> - open XSD or DTD doc
> - render GUI form containing XML data in accordance with optional XSTL
> doc
> - allow use of HTML/_javascript(or other) controls to change/add/delete
> elements/paramenters/data etc., within the confines of the XSD/DTD
> - transform form data back to XML format, valid per XSD/DTD, and save
> to disk
>
> I've also briefly looked at the Cocoon XMLForms stuff (and related),
> but this seems too comprehensive for what I want... I don't want XML
> binding to Java objects/beans, I simply want something that will
> input/output back to/from the original XML file. Maybe there is a
> tool/sample/example within the Cocoon distribution that does this, but
> I haven't actually looked yet.
>
> Any pointers welcome.
>
> ...[/color]
Comment