[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[sapphire-dev] XSD or DTD -> sapphire model questions
|
Hi Konstantin,
I noticed that you have checked in many new model files for the upcoming web.xml editor. I had a question in general about your process for creating a sapphire model that is based on a DTD or an XSD like the web.xml XSD. Do you have a particular process for doing this other than just creating each object/property one-by-one? I'm wondering if there is any script or tooling available to generate the model objects in a boilerplate fashion. Its seems that much of a sapphire model could be created by a small tool that will read a DTD or XSD and create the top level objects and many of the properties that are simply to map (like a simple string value property). The reason I ask is that I too am going to be creating a several new Sapphire models based off of some large DTD and XSD files and I was wondering if there was anything to make this process faster, less error prone. Also, how do you handle the fact that a web.xml could have versions 2.3, 2.4, 2.5, or 3.0 and each version may have slightly different model properties?
--
Greg Amerson
Liferay, Inc.