I've had pretty good luck with Jibx; just write binding definitions to
correspond to your POJOs, run the binding compiler, and start the
application.
The binding definitions are the most involved part, and those are just
some XML telling Jibx how each POJO corresponds to a data XML structure.
On 2/22/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
I am trying to develop some classes used for XML parsing or generating
purposes. But I think it is difficult to abstract to write a common
utility since each XML document is different, and to parse that
document, we should have a different
There are already so many tools to automate this. With these tools you
don't have to write ugly parsing code. Search for xml beans, jaxb,
Castor. They all require schema to work on and then it will generate
some stubs which are specific to your schema. These classes will be just
like javabeans and
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
>
Isn't this kind of off topic?
Oh well . . . I understand your writing a higher level API class for you
developers to use. So, your not exactly looking for suggestions about the XML
api you will use inside your utility. But in the off topic spirit, I'll just go
ahead and recommend a powerful
I agree with you Dale. DTD or XSD files enforce schema once you define
it, based on your problem domain. I think Zhnag's wants to create
generic Java classes to parse XML files. He is trying to create XML
library or XmlUtils class for his project, so all developers can us it.
Andrew Pliszka
Andrew Pliszka wrote:
When I talk about generic schema I am mean domain specific schema
How is that different from a DTD?
Pretty much any xml format that you intend to use heavily should be well
defined enough for you to generate one, and then you can easily have the
parsers validate anythin
]
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
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
, 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
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
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.
12 matches
Mail list logo