When I talk about generic schema I am mean domain specific schema, for example if you are working on web phot gallery you will have:

<?xml ...
...
<images>
 <image>
   <thumbnailUrl>/thumbnail01.jpg</thumbnailUrl>
   <imageUrl>/thumbnail01.jpg</imageUrl>
</image>
..
</images>

Since this is web gallery specific, you will have this kind of xml all over the place, so you can create generic Java classes to read list of images with thumbnails from XML files. Analyze your domain and identify patterns. Once you do that you will see similarities.

Andrew Pliszka

Zhang, Larry (L.) wrote:

What your suggesting is close to what I am trying to do. Do you have
some sample code or internet link discussing this? Another interesting
question -- when you talk about the schema --, is there a way to define
generic schema?

-----Original Message-----
From: Andrew Pliszka [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 4:48 PM
To: Struts Users Mailing List
Subject: Re: Xml utilities

I think what you have to do is create your own generic XML utility class

that is specific to your XML schema, that uses dom4j, or digester or XMLBeans as XML engine. You will have to create your a commons schema base for all your developers, that they will have to follow.

Andrew Pliszka

Zhang, Larry (L.) wrote:

I know that DOM and SAX but what I am looking for is some sort of
wrapper or single point class so that all team members will use my
class
instead of calling DOM or SAX directly.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 4:47 PM
To: Struts Users Mailing List
Subject: Re: Xml utilities

Hi Zhang,

I am not sure if i got your question correct. But, if you want some already existing XML parsers then DOM and SAX Parsers are the ones
which
are used extensively. Again, i might be missing more efficient ones.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to