Re: Xml utilities

2007-02-23 Thread Brian Thompson
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.

Re: Xml utilities

2007-02-23 Thread Niall Pemberton
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

RE: Xml utilities

2007-02-22 Thread Kalra, Ashwani
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

[OT] RE: Xml utilities

2007-02-22 Thread Dave Newton
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 >

Re: Xml utilities

2007-02-22 Thread bob
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

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
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

Re: Xml utilities

2007-02-22 Thread Dale Newfield
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

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
] 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

RE: Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
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

Re: Xml utilities

2007-02-22 Thread Andrew Pliszka
, 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

RE: Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
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

Re: Xml utilities

2007-02-22 Thread sriharsha . chevuru
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.