aspose file tools*
The moose likes XML and Related Technologies and the fly likes easy XML parser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "easy XML parser" Watch "easy XML parser" New topic
Author

easy XML parser

Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Hi Guys ,

I'm new to dealing with XML with java , So please b i wanna know the best and easiest XML parser to read and write xml with java ...
Appreciate your advice ..


Thanks,
Sherif
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
"Best" and "easiest" are always relative to the problem at hand, so we can't give general advice on that. The XmlFaq points to several introductions on how to use JAXP, the standard Java API for processing XML. You may also wish to investigate 3rd party APIs like XOM and JDOM.


Ping & DNS - my free Android networking tools app
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Actually what i wanna do is that i got XML file i wanna to read it and edit some element then save it ... that's all i wanna do
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
... which is precisely what JAXP and the other libraries I mentioned do. :-)
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

Ulf Dittmer wrote:... which is precisely what JAXP and the other libraries I mentioned do. :-)


Thanks Ulf for your fast reply, by the way the XML file i wanna edit is web.xml file in my WAR , so JAXP will help or any 3rd party will be better ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42277
    
  64
"Better" in what regard? JAXP -like the other XML parsers and DOM implementations- doesn't care about what kind of XML file it's dealing with.
Sherif Shehab
Ranch Hand

Joined: Mar 05, 2007
Posts: 483

i got your idea , OK i'll use JAXP
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: easy XML parser