• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Multiple XML Files One Schema

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic