This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes Multiple XML Files One Schema Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Multiple XML Files One Schema" Watch "Multiple XML Files One Schema" New topic
Author

Multiple XML Files One Schema

Jain Neeraj
Ranch Hand

Joined: Aug 09, 2001
Posts: 35
I have an application that uses around 10 XML files for Configuration. Idea is to have a common XMLSchema for all Config Files (it can grow more than 10) and to have a UI for editing. Is it possible to parse the XMLSchema using XSL and produce HTML for editing in JSP and then save back the changes to XML Files? Or is there any other better approach?

Thanks
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by Jain Neeraj:
Is there any other better approach?

Yes its possible to have once schema for 10 different xML, but having a single schema for 10 entirely different XML is not a good idea.
You can create UI for editing XML either using servlet or JSP, upon submitting the form, the servelt/jsp will generate the XML files.
As you are one who is going to create the UI, i would say you can skip the validation of XML against the XSD, which means your UI should be very strict to your XSD.


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple XML Files One Schema