Re: Xml utilities

2007-02-23 Thread Brian Thompson
:13 AM To: Struts Users Mailing List Subject: Xml utilities 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 pars

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
beans and you can call getter methods to extract the data. In case your schema changes, you have to just run the tool again. /Ashwani -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 3:13 AM To: Struts Users Mailing List Subject

[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.

Xml utilities

2007-02-22 Thread Zhang, Larry \(L.\)
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 parser. So the question is what utility class will look lik