Hello all
I'm writing a java standalone program designed to load xml and xsd files
dynamically.
I'm using castor for the marshalling and unmarshalling as well as the
SourceGenerator.
Operation:
1: the program loads
2: user selects specific xml and it's relative schema
3: program checks whether bean exists in filesystem, or change has been
made.
3.1:(if false to 3) program takes the schema and generates a src bean
from it(using SourceGenerator)
4:(if false to 3) program compiles src bean and instantiates it
5:(if false to 3) program loads and parses xml file according to schema
6:(if false to 3) handler is called with the src bean class passed to it
7:(if false to 3) hander decides whether to load a new handler for
complexType elements and then begins vector loading.
(still to come)8: vectors are loaded in such a way that forms a
hierarchy
(still to come)9: Jtree is created using for loops according to vector
hierarchy
(still to come)10: user manipulates JTree and such the xml.
(still to come)11: on exit
Now the problem comes in with my boss, he doesnt like the idea of the
bean creation and wants me to load the data directly from the xml to the
tree dynamically, I've had a look at DOM but i don't agree (don't know)
with some of the functionality.
The beans are only created when the schema changes or at first boot,
almost eliminating the need for the xml and xsd until there are changes,
which will then be saved back into xml form at runtime.
In my opinion xml is used for easy cross platform interaction, why
continue the slow process of parsing it if you don't need to...
Can anyone recommend something to me?
Regards,
Mike
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev