views:

447

answers:

2

I want to create a web based interface to configure a system. My systems configuration is defined using XML for which I have an XML schema. I am looking for a Java Library which takes this schema and automatically creates a nice web based interface for viewing and editing the XML configuration document.

It would be nice if this library would allow compound elements to be expanded and hidden and of course ensured the resultant XML is compliant with the XSD.

Should I be using Xform somewhere in here?

Regards

+2  A: 

Take a look at Xopus. It is a browser based XML editor written in Javascript. It takes an XML Document, an XML Schema and an XSLT as input.

Xopus is targeted at non technical users and will disable/hide all UI options that would make the documention invalid according to the specified XML Schema.

The XSLT is used to create a WYSIWYG editing view. Expanding and hiding of parts of the document can be easily added by dynamically setting XSLT parameters using the Xopus DOM API.

Laurens - Xopus
A: 

Hi Laurens,

I visited the Xopus website, but found no information on how Xopus can take in XML document, XML Schema as Input. Instead, I find it is only an online editor which stores the rich text information in XML format. It seems NOT an editor that caters for easier XML editing.

I guess it is neither the tool that Howard is requesting.

Hi Howard,

Have you found such a tool? I found Xample can do that. But it is an applet which uses com.fg.xmleditor. It is not flexible enough. I need something directly uses JavaScript to show the tags, to show the true structure, to handle XML schema like "choice", "maxOccurs=unbound", to send the edited XML content to another component (e.g., Servlet), etc. Xample is good enough for developer, but a JavaScript-based XML editor might be better for a non-technical end user.

Regards, Andrew

Andrew
Andrew, I'm sorry that you couldn't find the relevant information on http://xopus.com. Xopus is a fully validating XML editor. It allows you to use your XML Schema and edit XML instance documents through your XSL stylesheet. The product is designed for non-technical authors, so it is exactly what Howard is looking for.Take a look our documentation:http://xopus.com/documentation.htmlThe Developer Guide is a good starting point.
Laurens - Xopus